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 Trace32. Please help !
How to send data to target through Trace32 debugger?
1.5k views Asked by El Puerco Total At
1
"A way to send some data to the ucontroller through Trace32" is a little bit vague. There are various possibilities depending on what your actually try to achieve and might also depend on the used CPU family and target OS. Anyhow one of the following might work:
Data.Setcommand.Data.LOAD.Binarycommand for a raw binary file.Var.Setcommand.FLASH.AUTOcommand in addition to the previously mentioned commands (after declaring the flash memory to TRACE32).FLASHFILE.Setcommand (after initialization of the FLASHFILE programming system).SYStem.MemAccessand use the memory access class prefix "E".E.g.
Data.Set E:<addr> <data>or
Var.Set %E <expression>.FDXfor a bidirectional data transfer between debugger and a running target application.TERM.GATEcommand.