S32DS measure CPU Load

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

S32DS measure CPU Load

Jump to solution
1,498 Views
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!

Tags (1)
0 Kudos
Reply
1 Solution
1,493 Views
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!

View solution in original post

0 Kudos
Reply
1 Reply
1,494 Views
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 Kudos
Reply