Skip to main content
Associate II
Apr 16, 2025 11:51 PM UTC
Question

FreeRtos Runtime Stats

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

 

 

 

 

 

This topic has been closed for replies.

2 replies

Pavel A.
Apr 17, 2025 12:16 PM UTC

Have you implemented  portCONFIGURE_TIMER_FOR_RUN_TIME_STATS and portGET_RUN_TIME_COUNTER_VALUE ?

 

GreybeardAuthor
Associate II
Apr 18, 2025 11:06 AM UTC

Thanks for the insight.  I was overthinking the problem and focusing on FreeRtos.