 | Technical Support |  |
|
|
Technical Support Support Resources Product Information | µVISION DEBUGGER: FILE FORMAT FOR 'COVERAGE SAVE'
Information in this article applies to: - µVision Version 2 and Later for 8051 devices
QUESTIONI 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? ANSWERIt 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.
SEE ALSOLast Reviewed: Thursday, November 30, 2006
|
|