Get started with Keil MDK Code Coverage
Introduction
What is Code Coverage?
Set up Code Coverage
Next Steps
Get started with Keil MDK Code Coverage
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Choose ARM > ARM Cortex M3 > ARMCM3, then on the Examples tab copy the CMSIS-RTOS2 Blinky (uVision Simulator) example. Open the copied project in MDK and build it.
Build the project and check that it completes without errors and produces an image. Ensure it runs on the selected target without immediate faults.
In the project’s debug settings, select the supplied Cortex-M FVP as the execution target. This Learning Path uses FVPs instead of real hardware.
Look for highlighted executed and unexecuted lines or branches. Verify that intended paths, such as all cases in a C switch statement, were exercised.
Yes, MDK supports code coverage on real hardware using instruction trace (ETM trace). You’ll use FVPs in this Learning Path. If you’re configuring hardware trace, follow MDK guidance.