2025-04-16 4:51 PM
I am experimenting FreeRTOS to learn how to use it and CubeIde. Simple stuff right now. I am attempting to implement the runtime stats as described in V10.1 FreeRTOS Reference Manual (p 86) and am having two problems.
First, the TaskStatus_t {pxTaskStatusArray[ x ].ulRunTimeCounter ] reurns 0 for ulRunTimeCounter. so the runtime_percent is always zero. I have configGENERATE_RUN_TIME_STATS set to 1 in FreeRTOSConfig.h.
Any clarification would be appreciated
2025-04-17 5:16 AM
Have you implemented portCONFIGURE_TIMER_FOR_RUN_TIME_STATS and portGET_RUN_TIME_COUNTER_VALUE ?
2025-04-18 4:06 AM
Thanks for the insight. I was overthinking the problem and focusing on FreeRtos.