cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRtos Runtime Stats

Greybeard
Associate II

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

 

 

 

 

 

2 REPLIES 2
Pavel A.
Evangelist III

Have you implemented  portCONFIGURE_TIMER_FOR_RUN_TIME_STATS and portGET_RUN_TIME_COUNTER_VALUE ?

 

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