Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion content/learning-paths/microcontrollers/coverage_mdk/mdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ Open the project in MDK, and build.

By default, this project uses the legacy simulator provided with MDK, which does not support code coverage.

To run on the FVP, open Options for Target ![Options for Target Icon](images/b_target_options.png), navigate to `Debug` pane, and select `Models Cortex-M Debugger` from the `Use:` pull-down. Click `Settings`, and under `Command`, browse for one of the supplied FVPS in the `ARM\FVP\` folder of your MDK installation (eg `FVP_MPS2_Cortex-M3_MDK.exe`).
To run on the FVP, open Options for Target ![Options for Target Icon](images/b_target_options.png), navigate to `Debug` pane, and select `Models Cortex-M Debugger` from the `Use:` pull-down.

Click `Settings`, and under `Command`, browse for one of the supplied FVPs in the `Keil_v5/ARM/avh-fvp/bin/models` folder of your MDK installation (eg `FVP_MPS2_Cortex-M3_MDK.exe`).

{{% notice Older MDK versions %}}
Depending on the version of MDK you have installed the path to FVP executable may differ.

MDK versions before 5.37: Keil_v5/ARM/FVP

MDK versions 5.38, 5.39: Keil_v5/ARM/VHT

MDK version 5.40 or later: Keil_v5/ARM/avh-fvp/bin/models
{{% /notice %}}

Specify a `Coverage File`, and enable `Load` and `Store` of that file. Because of the way that the data is created, code coverage cannot be updated in real-time.

Expand Down