Need to measure cycle count using DWT

Hello team,


I am trying to use the DWT unit for getting the cycle count in Debug mode.
Below is my configuration:



Although I am unable to get the cycle count in my code. Any additional configuration needed?

thanks,

Aditya