S32DS measure CPU Load

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

S32DS measure CPU Load

ソリューションへジャンプ
1,436件の閲覧回数
DiaDev
Contributor III

Hi,

I would like to know how to measure the CPU load while the code is running on the S32K344 EVB using S32DS 3.5.14 in a FreeRTOS-based application.

I know that there is no hardware support in the ARM core on S32K devices. Is there any plugin or other option you would recommend to measure CPU load?

Thanks!

タグ(1)
0 件の賞賛
返信
1 解決策
1,431件の閲覧回数
sherri54labrecque
Contributor I

Hi,

I would like to know how to measure the CPU load while the code is running on the S32K344 EVB using S32DS 3.5.14 in a FreeRTOS-based application.

I know that there is no hardware support in the ARM core on S32K devices. Is there any plugin or other option you would recommend to measure CPU load?

Thanks!

Since the ARM core on S32K devices lacks built-in support for CPU load measurement, you can estimate CPU usage in your FreeRTOS-based application using FreeRTOS runtime statistics. One approach is monitoring the idle task runtime (ulTaskGetIdleRunTimeCounter()). Another is using traceTASK_SWITCHED_IN to track task execution and calculate CPU utilization. If you prefer a visual method, you can send runtime statistics over UART for real-time monitoring. Let me know if you need help implementing one of these!

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,432件の閲覧回数
sherri54labrecque
Contributor I

Hi,

I would like to know how to measure the CPU load while the code is running on the S32K344 EVB using S32DS 3.5.14 in a FreeRTOS-based application.

I know that there is no hardware support in the ARM core on S32K devices. Is there any plugin or other option you would recommend to measure CPU load?

Thanks!

Since the ARM core on S32K devices lacks built-in support for CPU load measurement, you can estimate CPU usage in your FreeRTOS-based application using FreeRTOS runtime statistics. One approach is monitoring the idle task runtime (ulTaskGetIdleRunTimeCounter()). Another is using traceTASK_SWITCHED_IN to track task execution and calculate CPU utilization. If you prefer a visual method, you can send runtime statistics over UART for real-time monitoring. Let me know if you need help implementing one of these!

0 件の賞賛
返信