vTaskGetRunTimeStats generate value > 100%
Market leading real time kernel for 40+ microcontroller architectures
Brought to you by:
gaurav-aws,
rtel
Did you guys ever find the answer to this? There doesn't seem to be any closing notes. I'm experiencing the same thing on 7.6.0.
It's showing 189% for me. The task does nothing but toggle a GPIO pin and vTask delay for 1 millisecond. Was using this for testing timing but I left it running and just happened to notice this.
Last edit: pugglewuggle 2014-02-25
I'll also add that I just noticed even after power-off reset it is immediately over 100%. Haven't seen this before.
Dropping vTaskDelay to 2ms instead of 1ms makes everything report properly. Running @ 12MHz on CortexM4 so I don't know why that would make that big of a difference.
I had the same problem on FreeRTOS and I found a solution.
For portCONFIGURE_TIMER_FOR_RUN_TIME_STATS () and portGET_RUN_TIME_COUNTER_VALUE () I had configured timer 16bits with 20kHz frequency
Now I have changed with 32bits timer and the problem is corrected.