I have a project running on Cortex M0.
I want to perform code coverage using Keil on it.
I tried using COVERAGE command in command window, but it gave an error as follows -
COVERAGE *** error 76: command not supported
Also, I noticed in View->AnalysisWindow->Code Coverage is greyed out.
Can someone help and let me know if I'm missing out on something here.
Thanks and Regards.
Edit 1: I have a "MDK-ARM Standard" license via a FlexNet License.
Edit 2: I'm using a Ulink/ME Cortex Debugger
Are you using a free evaluation version ?
No, I'm using a FlexNet licensed version of Keil v4.
It states "MDK-ARM Standard".
Cody Coverage is offered for any MDK Edition, i.e. MDK-Lite:
http://www2.keil.com/mdk5/selector
Possible reasons for not being able to select Code Coverage are i.e.:
- Trace is disabled
- The target does not offer i.e. ETM trace
- A ULINK2 Debug Adapter in use
In case I switch over from Ulink2 to Ulink Pro, would that be sufficient to enable Code Coverage on Cortex M0 ?
Note, there is no ETM Trace with a Cortex-M0 selected.
See also:
https://www.keil.com/support/man/docs/ulinkpro/ulinkpro_capture_tracedata.htm
https://developer.arm.com/documentation/ddi0432/c/debug/about-debug/data-watchpoint-unit?lang=en
https://community.arm.com/developer/tools-software/tools/f/keil-forum/34259/cortex-m0-get-error-trace-hw-not-present