Configure instruction trace in Embedded Studio

From SEGGER Wiki
Revision as of 14:05, 22 July 2020 by Nino (talk | contribs)
Jump to: navigation, search

This article explains how to enable instruction trace in Embedded Studio.

MTB

In general, to get MTB up and running, just make sure to configure MTB as Trace Interface Type in the Embedded Studio project settings:
Debugger > Target Trace Options > Trace Interface Type > ETB

ETB/ETF/TMC

In general, to get ETB/.. up and running, just make sure to configure ETB as Trace Interface Type in the Embedded Studio project settings:
Debugger > Target Trace Options > Trace Interface Type > ETB

Selection of ETB in ES

Pin trace (ETM/PTM)

In general, to get ETM/PTM up and running, just make sure to configure ETB as Trace Interface Type in the Embedded Studio project settings:
Debugger > Target Trace Options > Trace Interface Type > ETM

Selection of ETM in ES

Result

Once the debug session has been started, the most recent executed instructions will be shown in the instruction back trace window. The window can be opened at:
Debug > Other windows > Execution Trace

Example instruction trace output

Simulator

In the Embedded Studio simulator tracing is always enabled by default. Simply open the "Execution Trace" and "Execution Profile" windows and you should be able to see the trace data.

Sample projects

A constantly updated list of tested sample project can be found on the SEGGER homepage.
All projects come with an Embedded Studio and Ozone project.