Keil Logo

COVERAGE MTB Import

You can import a file that contains MTB trace records into the µVision Debugger to analyze for code coverage using the COVERAGE command:

COVERAGE MTB filename

For correct symbol mapping, load the image of the application that generated the MTB records into the debugging session.

The MTB trace record format is explained in MTB execution trace packet format. This binary format needs to be converted to an ASCII format explained bellow:

MTB  S: <start PC value>, <MTB MASTER.EN at start>, <MTB MASTER.HALTREQ at start>
WORD0
WORD1
WORD2
WORD3
 :
WORDn-1
WORDn
MTB  E: <end PC value>, <MTB MASTER.EN at end>, <MTB MASTER.HALTREQ at end>
  • The MASTER.EN and MASTER.HALTREQ values are required to determine the state of the MTB.
  • WORD0 represents the oldest word in the trace buffer.
  • Each word is on a separate line.
  • Two lines represent one trace packet of the MTB trace protocol.

Example

MTB S: 0x00000380, 1, 0
0x00000384
0x000005D5
0x000005DA
0x00000386
0x0000038A
0x000000C0
MTB E: 0x000000C2, 1, 1

Newlines between the start and the end tag are optional and for human readability only.

Note

  • This feature is currently supported by the Simulator.
  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.