investigating CPU load

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

investigating CPU load

887 次查看
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 回复

785 次查看
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.