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

How to measure CPU load on nrf52840

How does one measure CPU load in a 52840 application where softdevice is used?

I would imagine this is a pretty standard thing that people would want to do and I would be very surprised if there is no module already available from Nordic that supports this.

I need to know how much CPU headroom I have for introducing new features, or if our system is already overloaded.

In the past I have used various RTOS and visualisation tools such as windview, tracelyzer etc. These tools give one the overall view of how the system is performing including CPU load.

One way to measure load is to use a timer and take timestamps when the CPU goes to sleep and wakes up; but is this functionality not hidden in the softdevice somewhere and these points are not exposed to us.

Any pointers / hints would be gratefully accepted.

Regards,
Owain

Parents Reply Children
No Data
Related