Limitations Of Coverage In the Editor

The Editor window displays lines of C code. C is a high-level language where one line of C code can represent one or more device instructions, depending on the device. Therefore, looking at the actual device instructions in the Program (or Execution Memory) window may be necessary to determine the reason(s) for the coverage shown.

An example is the while(1) loop commented out in the code. If it is uncommented and the program is run again and then paused, the following text may display in the Output window:

No source code lines were found at current PC 0x330. Open program memory view to see instruction code disassembly.

To open the Program Memory (8- or 16-bit devices) window, select Windows > Target Memory Views > Program Memory. To open the Execution Memory (32-bit devices) window, select Windows > Target Memory Views > Execution Memory.

Figure 1: Program Memory - Simple Code Example

Since there is a branch instruction at address 0x330, the compiler has generated this representation of while(1). This will not be seen as source code and therefore, the Output text is generated.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.