trace32

How to write a value to a memory address in python using a T32_WriteMemory function

孤街浪徒 提交于 2019-12-07 18:51:27
问题 I am trying to automate the Trace32 functions using python. And I am trying to write a value to a memory address using T32_WriteMemory() function. Can someone help me how to go ahead with this function? Below is the reference from the T32 Api pdf (api_remote.pdf): int T32_WriteMemory( uint32_t byteAddress int access, uint8_t *buffer, int byteSize ); byteAddress : target memory address to start write access : memory access specifier buffer : output byteSize : number of bytes to read 回答1: To

Dispatching an external script from Trace32's PRACTICE II script?

一笑奈何 提交于 2019-12-06 22:04:34
Is it possible to dispatch an external (python) script from Trace32 using its PRACTICE II scripting language? For future googlers, like me, here is how to use the Lauterbach c-API to execute PRACTICE commands from Python. The TRACE32 application has to be open before you run your script. You also have to add 5 lines (including two blank lines) to your config.t32 file: #You must have an empty line before RCL=NETASSIST PACKLEN=1024 PORT=20010 #and after these three parameters At least the PORT parameter value is arbitary, but it has to match in your config and script. It defines the UDP port

Benchmarking Code Runtime with Trace32

风格不统一 提交于 2019-12-06 18:52:24
I have an embedded system with code that I'd like to benchmark. In this case, there's a single line I want to know the time spent on (it's the creation of a new object that kicks off the rest of our application). I'm able to open Trace->Chart->Symbols and see the time taken for the region selected with my cursor, but this is cumbersome and not as accurate as I'd like. I've also found Perf->Function Runtime, but I'm benchmarking the assignment of a new object, not of any particular function call ( new is called in multiple places, not just the line of interest). Is there a way to view the real

Trace32 Lauterbach APIs for C program access to the application variables

被刻印的时光 ゝ 提交于 2019-12-06 15:40:05
I have an ECU with Infineon controller and some xyz program flashed in it. Now the values of the variables of the program can be seen real time in Trace32 debugger with Lauterbach hardware. Now I have to note down all the values manually in report. I want to access those values using Trace32 APIs using C programming to automatically write those values in excel or notepad. I tried their API for Remote Control and JTAG Access document but could not do much. Can anyone please guide? I couldn't even configure Trace32 Software and not even send some command to Lauterbach. My main purpose is the

How to write a value to a memory address in python using a T32_WriteMemory function

天大地大妈咪最大 提交于 2019-12-06 08:21:46
I am trying to automate the Trace32 functions using python. And I am trying to write a value to a memory address using T32_WriteMemory() function. Can someone help me how to go ahead with this function? Below is the reference from the T32 Api pdf (api_remote.pdf): int T32_WriteMemory( uint32_t byteAddress int access, uint8_t *buffer, int byteSize ); byteAddress : target memory address to start write access : memory access specifier buffer : output byteSize : number of bytes to read To write memory from a python script via TRACE32 do the following: Enable the port for remote control at TRACE32