Finding CPU load in RTOS environment without using external tool

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Finding CPU load in RTOS environment without using external tool

5,982件の閲覧回数
kpdeshpande08
Contributor I

Hi,

I am using FreeRTOS component in my SDK application, and I want to measure CPU load. What logic should I write in my application code to calculate CPU usage in RTOS environment and how?

タグ(3)
0 件の賞賛
返信
1 返信

5,674件の閲覧回数
BlackNight
NXP Employee
NXP Employee

FreeRTOS already has that built-in.

See Better FreeRTOS Debugging in Eclipse | MCU on Eclipse , section "Runtime Information".

If you don't want to use Eclipse to visualize the data, then have a look at Tutorial: Using Runtime Statistics with Amazon FreeRTOS V10 | MCU on Eclipse  where I'm using a UART connection to the target with a shell to see how much load is used by each task.

I hope this helps,

Erich

0 件の賞賛
返信