hello,
I created a FreeRTOS project and used vTaskGetRuntimeStats () to get CPU usage.
But the program kept running portFORCE_INLINE static void vPortRaiseBASEPRI( void )
Please provide a sample program, thank you!
Hi,
have you enabled the statistics in the freertos component?
Regards,
Lukas
Thank you. I've solved the overflow problem.
I configured both options
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() /* nothing */ /* default: use Tick counter as runtime counter */
#define portGET_RUN_TIME_COUNTER_VALUE() xTaskGetTickCount() /* default: use Tick counter as runtime counter */
My new question is, how do I calculate the CPU usage statistics for every five minutes?