This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CPU Load Precise Measurement

Hi,

I'm running mcu_plus_sdk_am243x tcp server example on am243x-EVM.

There's a function that measures CPU load but I think it measures the intervals not with a hardware timer.

How can I measure the CPU load more accurately ? (Maybe with a callback from a hardware timer )

Thanks,

Eli 

  • Hi Eli,

    In order to measure the real CPU load, you will need to use the idle task in the FreeRTOS, but before your measurement, you will need to remove all the busy wait loop from all your tasks. This way, when the idle task is running, then it is the time CPU is free. The FreeRTOS will compute the CPU loading based on often and how long the idle task is running. TaskP_loadGetTotalCpuLoad() is the function to call.

    Best regards,

    Ming