MPLAB® Code Coverage Details

Use the MPLAB® Code Coverage license with MPLAB XC C compiler and MPLAB X IDE versions that support code coverage to view code coverage output.

MPLAB Code Coverage works with anything built from C source code.

MPLAB Code Coverage is supported on any debug tool supported by MPLAB X IDE.

Compiler Operation

Code coverage is supported by MPLAB XC C compiler instrumentation. The compiler adds a minimal amount of code in program memory to update flags in RAM to indicate coverage.

MPLAB X IDE Operation

The IDE will display highlighted covered code and percentages of covered code for project files. You may select which files to include for coverage by setting up file properties. See Code Coverage by Project File.

A report of the coverage may be generated also. See Create a Code Coverage HTML Report.

© 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.