How to send data to target through Trace32 debugger

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Betty956
Level 1
Level 1
First solution authored First reply posted First question asked

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>
    or Var.Set %E <expression>.
  • You can use FDX for a bidirectional data transfer between debugger and a running target echatspin application.

Please help !!!

0 Likes
1 Solution
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

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.

View solution in original post

0 Likes
1 Reply
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

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.

0 Likes