Skip to main content

Python Lauterbach Automation

Project description

python_lauterbach

A python implementation to control Lauterbach Trace32 software.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

lauterbach-trace32-rcl 

Add below two line in your T32 config file(C:\T32\config.t32 normally)

RCL=NETTCP
PORT=20000

Installing

pip install lauterbach-trace32-rcl 

What this tool can do

This tool will open a trace32 software, and provide below functionlity:

  1. Download elf/hex file;
  2. Run cmm script;
  3. Read/Write global variable;

Why this tool

This tool is part of EcuAutoTest, EcuAutoTest is used to control ECU software for testing, to do some ECU auto test.

A demo:

from python_lauterbach import python_lauterbach

with PythonLauterbach("C:/Lauterbach/T32_2022-02", "D:/test/debug.elf", "D:/test/setup.cmm") as debugger:
    # To read out a char TestArray[32] value;
    value = debugger.read_string_array_variable_value("TestArray", 32)
    # To read out a char *TestPointerArray[32] value;
    value = debugger.read_string_pointer_variable_value("TestPointerArray", 32)
    # To write a global arrary variable char TestArray[32] with data "AABBCC"
    debugger.write_string_array_variable_value("TestArray", "AABBCC")
    # To raed a none variable value, TestArray[1]
    value = debugger.read_variable_value("TestArray[1]")
    # To write a none variable value, TestArray[1]
    debugger.write_variable_value("TestArray[1]", "A")

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_lauterbach-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_lauterbach-0.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file python_lauterbach-0.0.2.tar.gz.

File metadata

  • Download URL: python_lauterbach-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for python_lauterbach-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c9cf0f98ca92328bfe381a5336676f278bfe282cfd91b06540924de559652bda
MD5 39d651878d4d12d16c132a715c954393
BLAKE2b-256 42aa322cf0931e366e8528d2db15d6ad78de838b573149c875802cd4aef5cabb

See more details on using hashes here.

File details

Details for the file python_lauterbach-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_lauterbach-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21c199430278b805316bdd9aca4ce8df41c49b86ce88b21d981b401a2af977d8
MD5 4fe5e2205b38ab26ca728d301f1fe521
BLAKE2b-256 3b46e83033c2d817a57489f73fcb31ee7305c825cc74d515c3c6f8bfee4bf054

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page