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
Who is this for?
This is an introductory topic for embedded software developers new to the code-coverage feature in Keil MDK.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Set up project execution on FVP
- Understand basics of the Code Coverage report
Prerequisites
Before starting, you'll need the following prerequisites:
- Basic familiarity with Keil MDK
Summary
This summary was 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.
You’ll enable and use Keil MDK code coverage on a Cortex-M Fixed Virtual Platform (FVP). First, you’ll import and build the CMSIS-RTOS2 Blinky example for the
ARMCM3 device using Pack Installer. Then, you’ll configure μVision debug to execute the application on the supplied Cortex-M FVP. After running the program, you’ll review the coverage results to see which lines and branches executed and identify untested paths, such as incomplete switch cases. You’ll focus on running with FVPs and learn how to interpret the basic code coverage report and decide what tests to add next.