This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to get 51822 cm0 cycle count?

Hi Nordic expert, I wanna get a profile of 51822 performance cycle count. I found 51822 has no powerful DWT feature as cm3 or cm4, would you share me some feasible methods to do that? Are there some IDE tools can show this infromation? Thanks.

Parents
  • Hi,

    As you say there is no DWT features in the nRF51. And as far as I know there is no IDE tools that can do this with the nRF51 either. The only feasible methods I can think of is to set up a 16MHz timer as a counter and read out the COUNT register at key points in your application. Another solution is to toggle GPIO pins and measure the time between the "toggles" with an oscilloscope or something similar.

Reply
  • Hi,

    As you say there is no DWT features in the nRF51. And as far as I know there is no IDE tools that can do this with the nRF51 either. The only feasible methods I can think of is to set up a 16MHz timer as a counter and read out the COUNT register at key points in your application. Another solution is to toggle GPIO pins and measure the time between the "toggles" with an oscilloscope or something similar.

Children
No Data
Related