Keil Logo


Information in this article applies to:

  • µVision Version 2 and Later for 8051 devices


I have a hardware tool that collects code coverage information on my 8051 based target system. Since the µVision simulator is able to load code coverage information from a file, I would like to use µVision to view this information in high-level (source) mode. What file format does µVision use to store code coverage information?


It is a binary file with a some additional header information:

  • 4 byte integer that specifies the code page. It is:
    00:00:00:00 for standard applications and for the common area of code-banked applications.
    80:00:00:00 for code bank 0
    81:00:00:00 for code bank 1 and so on.
  • 65536 (0x10000) 16-bit integers where each value represents the attribute for a single 8051 code byte. The bits have the following meaning:
    • Bit 0: There is an 8051 instruction at this address.
    • Bit 4: 8051 instruction has been executed at least once. This attribute is only set on the first byte of an instruction.
    • Bit 14: 8051 jump instruction has been taken
    • All other bits are not significant for this purpose.
  • 8 bytes with a value of 0 mark the end of a 64K code segment.



The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, February 24, 2017

Did this article provide the answer you needed?
Not Sure
  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.