investigating CPU load

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

investigating CPU load

423 Views
dexter2306
Contributor II

Hi !

I'd like to have some advices because I'm stuck !

I need to measure the CPU load on my device (LPC 11xx). However, it's programmed in bare metal so I don't have access to the classic Linux commands.

How would you do to have an idea of this consumption and be sure, for example, that you are not using more than xx% of CPU load ?

Thanks for helping me !

1 Reply

321 Views
converse
Senior Contributor V

Not sure this is possible with a Cortex-M0 as there are no Performance Counters (that are present in Cortex-M3/M4/etc).

One thing that you may be able to do is to use a spare GPIO that you set when going to sleep (WFI) and gets cleared when reawakened (in the interrupt handlers), and then using an external scope to monitor that signal.