Skip to main content
Visitor II
April 16, 2025
Question

FreeRtos Runtime Stats

  • April 16, 2025
  • 1 reply
  • 483 views

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.

    1 reply

    Super User
    April 17, 2025

    Have you implemented  portCONFIGURE_TIMER_FOR_RUN_TIME_STATS and portGET_RUN_TIME_COUNTER_VALUE ?

     

    GreybeardAuthor
    Visitor II
    April 18, 2025

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