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!