Keil Logo

Introduction Enable MTB Trace

To enable Micro Trace Buffer instruction tracing for Cortex-M0 processor-based devices:

  • Connect ULINKplus to the PC and to the JTAG adapter of the MPS unit.
    (For Cortex-M0 evaluation boards, connect ULINKplus to the PC and to the board's JTAG or ARM 10-Pin connector.)
  • Enable the MTB Block for tracing.
  • Configure µVision to capture MTB trace data.

Enable the MTB Block

  1. Create a text file, for example Dbg_Ext_Flash.ini, and enter the code that enables the MTB block. When writing initialization files, use the _WDWORD command to configure the registers.

    The example applications provide pre-configured initialization files. Use the Configuration Wizard to setup the application.

    Config Wizard for *.ini file

Configure µVision to capture MTB trace data

  1. Open the dialog Options for Target — Debug, and insert Dbg_MTB.ini into the field Initialization File.

    Enable MTB trace

  2. Enable Use and select ULINKplus/ME Cortex Debugger.

Start the debugging session and verify the captured trace data with a µVision window.

  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.