Keil Logo

TraceRun (ETM)

Starts capturing ETM instructions when the expression tp_expr evaluates to TRUE. This command affects ETM instruction trace only. The command syntax is:

Syntax Description
TR tp_expr Starts capturing ETM instruction trace. Suspend capturing ETM trace data with TraceSuspend.

Examples:

TR  main                      // start trace when reaching main; same as TR _codeacc_(main)
TR  AD_last                   // start trace on a write-access to AD_Last
TR  0x1400                    // start trace when PC reaches address 0x1400;
                              // same as TR ($ == 0x1400) or TraceRun _codeacc_(0x1400)
TR  (0x1400,0xFF)             // start trace when PC reaches an address in the range 0x1400 - 0x14FF
TR  _readacc_((0x8000,0xFF))  // start trace on a read-access in the range of 0x8000 - 0x80FF
TR  _readwriteacc_(0x8000)    // start trace on a read or write access to address 0x8000
  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.