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
8
votes
1 answer

Trace32 command to read symbol contents from ELF file

Problem scenario: In simple words, do we have a Trace32 command to read symbols (and its contents) from ELF file that was loaded on to target ? We have this special case where application specific debug symbols of the ELF file are made as part of…
Shashaankar
  • 81
  • 1
  • 1
  • 2
6
votes
3 answers

How to force a connection to a PowerDebug which is already in use?

In some cases, the Trace32 may hang, or may be closed while the target core is still running. This leads to the following screen when trying to reopen the Trace32 GUI: Is there any way to force a "Reset and connect" (choose "Yes" in the popup)…
crazyGamer
  • 1,119
  • 9
  • 16
6
votes
1 answer

How can i place a break point with logical condition in Trace 32

I want to set a break point, which stops my application when two variables contain a certain value. E.g. Stop execution when both x==10 and y==11. How can I achieve that in Lauterbach TRACE32?
5
votes
2 answers

trace32 - Memory dump of multiple address ranges to a single binary file

I'm using the Lauterbach debugger to dump from different memory sections to binary files. So far I've managed to generate a binary file for each address range using data.save.binary output1.txt…
sdmello
  • 431
  • 2
  • 6
  • 14
4
votes
1 answer

A Trace32 script simulator?

I'm new to T32 script, and would like to test few scripts from the example of the user guide. However, I don't have a target to hook up with, so I'm wondering if there are something like a simulator which I can try my scripts without connecting to a…
Nobody
  • 179
  • 2
  • 8
4
votes
2 answers

LauterBach debugging in trace32 : Is there a way to set a data breakpoint for a local variable before entering the context?

From the help document, to set a data access breakpoint, we can use var.break /READWRITE However, this can only work when we have entered the context for that variable. Because I want to write a PRACTICE script to do automatic…
Eric Sun
  • 777
  • 6
  • 20
3
votes
1 answer

How to make a variable in global scope in Robot framework?

I have create a small robot framework test suit which will communicate with trace32 Lauterbach. My idea is to run different functions name using a loop. Every loop, it will make a breakpoint in the Trace32 later batch. I have written a simple python…
user2986042
  • 1,098
  • 2
  • 16
  • 37
3
votes
2 answers

lauterbach scripting: checking if program stops at breakpoint

I have to check by way of a script if a program stops at a breakpoint: example: break.set func1 /Program Go IF (program stops at breakpoint) ( do smth ) I am new to this language and I cannot seem to find relevant information on google. Thank you
sandra
  • 65
  • 4
3
votes
0 answers

How can I read read program counter register in python using T32_ReadRegisterByName function

I am trying to read out the PC register from Trace32 debugger using python with T32_ReadRegisterByName() function, but as a return_code I always get 4112, instead of 0. According to manual, if return_ code >0 means access error (e.g.wrong register…
Bazsi91
  • 31
  • 1
3
votes
1 answer

PRACTICE cmm script how to v.v a new variable in an old window

This opens a window of variable a: v.v a View variable b in the same window. How to do tihs? v.v b I know this can put them in the same window, but I want to view b at a later time v.v a b
Sean
  • 51
  • 2
3
votes
1 answer

Trace32 use a macro in TEXT or HEADER for window

here with another Trace32 question. A week ago, I wrote a new script that can run any command that my company uses from one central location. It works great when I remember what workspace I am working in (since all file locations are relative to the…
MPStoering
  • 184
  • 2
  • 12
3
votes
2 answers

How to set a breakpoint to the end of a function in TRACE32?

I want to set a breakpoint to the end of a function in Lauterbach. I know that this can be achieved using Break.set sYmbol.EXIT(function_name). Unfortunately, this isn't working. Can you indicate another command for this ?
John Smith
  • 777
  • 2
  • 14
  • 37
3
votes
2 answers

Lauterbach execute script when breakpoint is hit

I am using Lauterbach to debug a PowerPC embedded C software. I want to execute the below ALGO from a .cmm(PRACTICE) script. Pleas let me know if it is possible: Set Breakpoint When Breakpoint is hit, execute a .cmm file. This .cmm file will rewrite…
chi_n_me
  • 45
  • 1
  • 7
3
votes
3 answers

Checking status of lauterbach window command line

We use Perl script to launch a trace32 window on a remote machine and perform some operation, obviously the Perl cannot print any logs from trace32 window as its a separate GUI, very rarely the script fails probably because the trace32 failed, but…
rodee
  • 3,233
  • 5
  • 34
  • 70
2
votes
2 answers

Trace32 is there way to know if PRACTICE cmm finished?

I am using RCL for controlling Trace32 remotely. It is well-known that when running any PRACTICE command interactively (e.g. cd.do my_script.cmm) the command itself completes immediately, while the CMM script continues to run. Same applies when…
Noob
  • 335
  • 1
  • 8
1
2 3
13 14