S32DS measure CPU Load

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

S32DS measure CPU Load

跳至解决方案
1,867 次查看
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,862 次查看
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,863 次查看
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 项奖励
回复