CYCCNT does not work when APPROTECT is enabled

I'm using CYCCNT to time code.  Works fine until APPROTECT is set, then after reboot the CYCCNT is always 0.  Is there a way to enable CYCCNT when APPROTECT is set?

I'm using an nRF5340.

Related