Questions tagged [trace32]

Trace32 is an In-Circuit Debugger.

Trace32 is an In-Circuit Debugger (ICD) made by Lauterbach. It uses basic features of the onchip debug system to provide a powerful debug tool that offers:

  • Easy high-level and assembler debugging
  • Display of internal and external peripherals on a logical level
  • Onchip break and trigger support
  • RTOS awareness
  • Flash programming
  • Powerful script language
  • Multiprocessor debugging

Reference

Trace 32 Debugger
Trace 32 In-Circuit Debugger Quick Installation and Tutorial

208 questions
1
vote
2 answers

TRACE32 debugging --Tracing Function Call

How to know which function has called a particular instruction using trace32 ? ARM based. It's like I know that this instruction X has some error. How can I trace back to which function in the code executed this instruction X. Also how to learn more…
1
vote
1 answer

How to use AddMenu in Lauterbach while a PRACTICE script loop is running(and blocking) execution?

I have created a PRACTICE Lauterbach script in order retrieve certain strings from buffers, from different situations. I place 4 breakpoints in the different places where I retrieve the buffers from. I wanted to retrieve the info in a non-blocking…
1
vote
2 answers

trace32 “access timeout,target running” error in the device

I am getting this error whenever I am trying to run the device to debug the C code, what does this mean? Does it mean stack or heap memory error? Initially it was running fine when I again tried to run it, I am getting this error again and again.
pavikirthi
  • 1,569
  • 3
  • 17
  • 26
1
vote
1 answer

Lazy evaluation of Lauterbach macro - is it possible?

I'm currently writing some kind of a "skeleton" for tests to be performed using Lauterbach scripts. In this skeleton I want to have a part in which all test specific definitions shall be done, e.g. functions to set breaks on, variables to be altered…
Thoran
  • 163
  • 1
  • 9
1
vote
1 answer

Lauterbach CMM scripts symbol.exit is not consistent always

I am invoking the command go symbol.exit(myfunc). Sometimes the program control reaches at the end of function but sometimes it ends with beginning of the function. Do we have any other method to reach at the end of function? Please suggest me why…
Siva
  • 13
  • 2
1
vote
1 answer

Run time till breakpoint is reached?

I have a script with a breakpoint A and I want to know if is a function that shows the run time till the breakpoint is reached(manually you see it at Misc Runtime ). Let's say if it hits at 10ms is passed if is more is fail. The current code for…
Daniel
  • 99
  • 9
1
vote
1 answer

Check which breakpoint is reached first. trace32 toolbox lauterbach for test automation

Basically I have two breakpoints, let's say A and B. I wrote a .cmm script for automation test and I want to know how can you see i breakpoint A is reached before breakpoint B. Based on this presumption to have a condition to pass or fail the test.…
Daniel
  • 99
  • 9
1
vote
1 answer

How to See the Call Trace in Trace 32

Can anyone help we out to see the Call Trace in the Trace 32 debugger. I remember such option is available in UDE debugger. Is such option available in the Trace32 as well. Example:-When a interrupt has raised then I wanted to know what all function…
1
vote
2 answers

Benchmarking Code Runtime with Trace32

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…
codehearts
  • 483
  • 1
  • 9
  • 16
1
vote
1 answer

JTAG Scripting: How can we structure like variable be used in JTAG scripting language

I am trying to access array of a structure like this (C equivalent) Struct register { int addr; int val; }reg[100]; for(i=0;i<100;i++) Print reg[i].addr How can this be achieved in Jtag scripting language?
Aditya
  • 11
  • 2
1
vote
1 answer

T32 script usage

Can anyone help me on this script? What did the function do? Thanks! ======================================================== &AAA=0 if (string.scan(string.lwr("¶meters"),"AAA",0)!=-1) ( …
Nobody
  • 179
  • 2
  • 8
1
vote
1 answer

Trace32 continuously read file

I'm trying to make a script for Trace32 PRACTICE language that reads some data from a .txt file and then passes the values to a variable that I need to debug. My problem is that I cannot make it return to the top of the file and start over, once the…
1
vote
1 answer

T32 script usage

I'm new to T32 script, and got a question about the scripting. Looking into our project's script, I found the code like below : A.cmm ======================================================= .... if (&AAA==TRUE()) ( do B.cmm F=test1 …
Nobody
  • 179
  • 2
  • 8
1
vote
1 answer

Trace32 Execute script when program stops

Is there a way to execute a script every time the program stops? I need to do something like this: Var.Set \myvar=list[Id] where list and Id are variables from the program. However when the Id changes \myvar doesn't change, it remains with the…
1
vote
2 answers

How to disable assembly during debugging in Trace32?

I want to disable assembly and see pure C/C++ code during debugging using Trace32. is it possible to do that?