Closed
Description
The application should not access to DWT/Debug registers directly. Also, these registers are only available in ARMv7-M based processors (not in Cortex-M0/M0+).
https://github.com/ARMmbed/mbed-os-example-tls/blob/master/benchmark/main.cpp#L189
I'd suggest to use the 'time' API available in mbed OS:
https://docs.mbed.com/docs/mbed-os-api-reference/en/latest/APIs/tasks/Time/
@sbutcher-arm