How to use CYCLE in Core Registers?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by jnd on Thu Mar 11 16:10:48 MST 2010

I'd like to count cycles for one loop and haven't figured how could I do it. I found these two rows in Core Registers tab which sound promising:

CYCLE indicates the number of cycles executed since reset
CYCLEDELTA indicates the number of cycles executed since the last start

But they never change. I tried setting them to something but that didn't help. Is there any way to use them? How to display elapsed cycles of executed code in the debugger? I had idea about using timer but found it runs freely even when the execution is suspended.