FILE FORMAT FOR 'COVERAGE SAVE'
Applies to: uVision Debugger
Information in this article applies to:
- uVision 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 uVision simulator is able to
load code coverage information from a file, I would like to use
uVision to view this information in high-level (source) mode. What
file format does uVision 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
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
- 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
- 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
Article last edited on: 2006-11-30 15:20:49
Rate this article
Disagree? Move your mouse over the bar and click