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:
- Download elf/hex file;
- Run cmm script;
- 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
- Sgnes - Initial work -
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9cf0f98ca92328bfe381a5336676f278bfe282cfd91b06540924de559652bda
|
|
| MD5 |
39d651878d4d12d16c132a715c954393
|
|
| BLAKE2b-256 |
42aa322cf0931e366e8528d2db15d6ad78de838b573149c875802cd4aef5cabb
|
File details
Details for the file python_lauterbach-0.0.2-py3-none-any.whl.
File metadata
- Download URL: python_lauterbach-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21c199430278b805316bdd9aca4ce8df41c49b86ce88b21d981b401a2af977d8
|
|
| MD5 |
4fe5e2205b38ab26ca728d301f1fe521
|
|
| BLAKE2b-256 |
3b46e83033c2d817a57489f73fcb31ee7305c825cc74d515c3c6f8bfee4bf054
|