Keil Logo

Trace Settings

To configure the J-Link/J-Trace adapter for tracing:

  1. Target Options Open the Options for Target ... — Debug dialog of µVision.
  2. Enable Use and select Cortex-M/R J-LINK/J-Trace.

    Target Options

  3. Click Settings to open the Target Driver Setup dialog, and choose the Trace tab.

    Trace - Target Driver Setup

  4. Set Enable. The Core Clock must correspond to the device configuration.
  5. Set Autodetect max SWO Clk.

The Trace Settings screen consists of the following sections:

  • General Settings determine the over all behavior while tracing data.
  • Trace Port defines the trace channel and tracing speed.
  • Instruction Trace enables program counters and ETM tracing.
  • Timestamps allows time information to be sent along with trace events.
  • Trace Events obtains information on specific CPU events.
  • ITM Stimulus Ports can steer debugging or program-specific information from the target device.
  • Quick Help shows hints when the mouse is hovered over the screen items.

Note

  • Some applications reset the CPU Core Clock in the startup code. When debugging such applications, stop the program execution before the clock rate gets configured, and modify Core Clock to match the new clock rate. Use the menu Debug — Debug Settings ... or assign the new value to the VTREG CORE_CLK.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.