Quickstart

Getting Started

For starting TRACE32 follow these steps:

  1. Set defaults members depending to your environment

    • Most default settings should be appropriate

  2. Create a PowerView object

  3. Configure your PowerView instance as needed (e.g. add a Interface)

  4. start() your created PowerView instance

  5. Do your work.

  6. Either wait() for termination or stop() the PowerView instance manually. To make sure even in case of errors the PowerView instance is properly terminated, you can use it as a context manager which will implicitly call stop() 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()