- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I need a way to send some data to the ucontroller through Trace32. I heard that this is possible some way, but I have no idea where to start.
What I am actually trying to do is run a piece of code on a Aurix TC297 ucontroller to do some measurements (runtime, RAM, etc.). This piece of code is actually a Kalman filter that needs as input a vector of structs that I have too send from the computer through echat Trace32.
- Simply writing some raw data to the target memory can be achieved with the
Data.Set
command. - To transfer a big amount of data (or even a whole application) from a file to the target memory the Data.LOAD commands might be the right choice. E.g.
Data.LOAD.Binary
command for a raw binary file. - To set variables in your application or even initiate C-style data arrays use the
Var.Set
command. - To write data to NOR flash or onchip flash memory you'll need the
FLASH.AUTO
command in addition to the previously mentioned commands (after declaring the flash memory to TRACE32). - To write data to a NAND, SPI or other serial flash memory you probably should use the
FLASHFILE.Set
command (after initialization of the FLASHFILE programming system). - To transfer data from TRACE32 to your target while the CPU is running you might have to configure correctly
SYStem.MemAccess
and use the memory access class prefix "E".
E.g.Data.Set E:<addr> <data>
orVar.Set %E <expression>
. - You can use
FDX
for a bidirectional data transfer between debugger and a running target echatspin application.
Please help !!!
Solved! Go to Solution.
- Labels:
-
AURIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The question seems more towards the Lauterbach commands to send data to uC, please refer to the below links from Lauterbach for details on T32 scripts/commands :
https://www2.lauterbach.com/pdf/commandlist.pdf
https://www2.lauterbach.com/pdf/training_aurix_trace.pdf
Regards,
Prudhvi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The question seems more towards the Lauterbach commands to send data to uC, please refer to the below links from Lauterbach for details on T32 scripts/commands :
https://www2.lauterbach.com/pdf/commandlist.pdf
https://www2.lauterbach.com/pdf/training_aurix_trace.pdf
Regards,
Prudhvi.