Keil Logo

Configure for Tracing

Trace Configuration options are set in the dialog Target Driver Setup - Trace and define the way trace events are generated and captured.

To configure CMSIS-DAP Debugger for tracing:

  1. Target Options Open the Options for Target ... - Debug dialog of µVision.
  2. Enable Use and select CMSIS-DAP Debugger.

    Target Options

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

    Target Driver Setup - Trace

The following configuration options determine the communication type, speed, and ports used while tracing data:

  • General Settings determine the over all behavior while tracing data.
  • Trace Port defines the trace channel and tracing speed.
  • ITM Stimulus Ports can steer debugging or program-specific information that are obtained from the target device.

These following configuration options determine the captured trace data and trace events:

  • Timestamps allows time information to be sent along with trace events.
  • PC Sampling enables Program Counter information, which indicate the program location that triggered the event.
  • Trace Events obtains information on specific CPU events.


  • CMSIS-DAP firmware needs to be version V1.10 or newer to support SWO trace. Verify the firmware in CMSIS-DAP JTAG/SW Adapter.
  • If the screen shows the Pack tab, then go to Pack Options to modify CMSIS Pack debug description settings.
  • Use an Initialization File to Configure Cortex-M Devices for Tracing or debugging. Commands of an initialization file are executed prior to downloading the application to Flash. Refer to Pre-Download Scripts for information about initialization files.
  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.