This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CPU load (with SD) ?

Hello,

Is there any way to know CPU load (active vs sleep time) ?

Parents
  • I still don't get it. What special "load" you have in mind? If I get it right this isn't anything like ARM Cortex-A or x86/AMD64 with out-of-order execution, variable clock, multicore, turbo etc. Here once the CPU works it executes the instructions pretty much linearly at constant clock. So the power consumption depends only on peripherals turned on (and I guess only radio have really dynamic power characteristic, right?). So unless your code has some disturbing busy wait loops it should be easy to see from the power consumption when you execute the code (= CPU is 100% busy) and when you go to sleep (assuming you use this standard architecture of asynchronous event-based BLE app with just app_sd_evt_wait() - or directly WFE - in the main program loop). Or you want to filter SoftDevice processing out of it?

Reply
  • I still don't get it. What special "load" you have in mind? If I get it right this isn't anything like ARM Cortex-A or x86/AMD64 with out-of-order execution, variable clock, multicore, turbo etc. Here once the CPU works it executes the instructions pretty much linearly at constant clock. So the power consumption depends only on peripherals turned on (and I guess only radio have really dynamic power characteristic, right?). So unless your code has some disturbing busy wait loops it should be easy to see from the power consumption when you execute the code (= CPU is 100% busy) and when you go to sleep (assuming you use this standard architecture of asynchronous event-based BLE app with just app_sd_evt_wait() - or directly WFE - in the main program loop). Or you want to filter SoftDevice processing out of it?

Children
No Data
Related