Quickstart
Getting Started
For starting TRACE32 follow these steps:
Set
defaultsmembers depending to your environmentMost default settings should be appropriate
Create a
PowerViewobjectDefine a Connection
Specify your target
Configure your
PowerViewinstance as needed (e.g. add a Interface)Do your work.
Either
wait()for termination orstop()thePowerViewinstance manually. To make sure even in case of errors thePowerViewinstance is properly terminated, you can use it as a context manager which will implicitly callstop()on exit.
Minimal USB debugger example
import lauterbach.trace32.pystart as pystart
# If installation is not located at "C:\T32" and environment variable "T32SYS" is not
# pointing to the installation directory of TRACE32 add following line:
# pystart.defaults.system_path = "</path/to/TRACE32/installation>"
pv = pystart.PowerView(pystart.USBConnection(), "t32marm")
pv.start()
pv.wait()
Minimal ethernet debugger example
import lauterbach.trace32.pystart as pystart
# If installation is not located at "C:\T32" and environment variable "T32SYS" is not
# pointing to the installation directory of TRACE32 add following line:
# pystart.defaults.system_path = "</path/to/TRACE32/installation>"
connection = pystart.UDPConnection("<IP address or DNS name of the debugger>")
pv = pystart.PowerView(connection, "t32marm")
pv.start()
pv.wait()