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
0
votes
0 answers

Lauterbach Trace 32 debugger shows Illegal sap id code error

Whenever I am trying to run any script on Trace32 I am getting below error. How can I fix this? Any help would be appreciated. I want to run few .cmm scripts
Faiz
  • 1
0
votes
0 answers

Unable to call the function inside the .dll file of Trace32?

This is my remote dll file location. t32api = ctypes.cdll.LoadLibrary('C:\Users\xxxxxx\Downloads\t32api64.dll')` From the below code snippet, I am not getting any functions like T32_Config / Config # Configure communication…
0
votes
0 answers

How to count Linux Kernel function calls using Trace32?

I'm on an ARMv7 system with a Lauterbach Power Trace connected via JTAG and I want to count function calls (B, BL) in the Linux Kernel up to a certain point, so that I have an output of: c0107200 handle_IRQ 80 c0107278 arch_cpu_idle 76 ... Is this…
JohnnyFromBF
  • 9,873
  • 10
  • 45
  • 59
0
votes
2 answers

Automatically generating t32 config file at a given path with a given name

I am trying to automate a workflow, where on multiple remote computers, I run tests via Trace32. The code for the test is done, I also wrote the code (mostly in Powershell) for automatically opening T32 PowerView GUI on the computers and running the…
me9hanics
  • 3
  • 2
0
votes
1 answer

How to get a variable's value using it's string name

I have a global MACRO defined in .cmm script and I want to get it's value by using the string name. I tried to reference it with double "&" symbol, but after this line I get an "operand expected" error: &error_name =…
Ondina
  • 3
  • 2
0
votes
0 answers

Is there an option to check the sequence of the function that is running using Trace 32

I am trying to check the order or sequence in which the functions are being called after i flash using trace 32. Can anyone help me know if there is an option to check this and where can i find it? I tried a graphical method which i saw online but…
0
votes
0 answers

Get the Stack frame in Lauterbach T32 from Python RCL Api

I am trying to get the Call Stack from my python script over the API. Reading variables and setting breakpoints is not a problem, but I cannot read the Call stack or the current frame with the RCL library.
0
votes
1 answer

Trace32: How to Focus view on a user provided pc(program counter)

I got a situation on ARM controller, where in the underlying OS layer, an exception is reported by calling osException(). The caller of this function also passes the pc(program counter). I have set a breakpoint on osException() and can print the…
Sumen
  • 1
  • 1
  • 2
0
votes
1 answer

Lauterbach Trace32 command line start up: Cannot append to item of type "Configuration Container V2.2" an item of type "PRINT"

I am trying to open Trace32 (t32start.exe) by running Powershell code (or simply from the command line), then running a .cmm practice script to open the PowerDebug. (It's for starting the program when the PC is turned on after e.g. a power cut.) The…
me9hanics
  • 3
  • 2
0
votes
0 answers

Lauterbach Trace32 - stack overflow issue when generating functions statistics

I'm getting the stack overflow error on the Lauterbach trace statistics for functions. Suspecting this might be due to too many functions calls. Anyone has any ideas on how to resolve this? Suggestions on how to trace only the needed functions are…
0
votes
1 answer

Using pyrcl for trace32

Iam trying to remotely control the trace32 and trying to add commands from pyhton, in this process i have to set break point using python but i cannot set as its saying the function name is not defined (i have already flashed my hex and elf) other…
0
votes
1 answer

run a .cmm file in TRACE32 ICD ARM32 SIM using python

I want to run a .cmm file in TRACE32 ICD ARM32 SIM using python and I use the following way and it doesn't seem to work、 import ctypes # module for C data types import enum # module for C data types import os # module for paths and…
hsz
  • 1
  • 2
0
votes
0 answers

How can I define the input parameter for T32 init script with Practice?

I am using Eclipse plugin T32 to interface my Lauterbach, in this way I would like to add as input parameter the binary to be loaded by Lauterbach in my target; however I am not able to achieve this and I am wondering why. I am using this snippet in…
ndarkness
  • 1,011
  • 2
  • 16
  • 36
0
votes
0 answers

trace32 - How can I load multiple non-consecutive addresses into axf

Based on CORTEXA7 symbol is *.axf and The code dumps some data and saves it in *.mem, but the data is discontinuous now How to load *.mem to match symbol for example, use the cmm command, will load from 0x8160000 .load.binary "&mem_file_path"…
hsz
  • 1
  • 2
0
votes
1 answer

How to bring up entire project source code on trace32 along with Assembly?

I am trying to debug my project on trace32, I am loading the ELF which has been cross compiled for RISC-V. While running the binary I see only the assembly code and not my source code which makes it harder to debug and adding breakpoints. According…