Hi,
We are using MCUXpresso 25.6.136, FreeRTOS 11.0.1 and the SDK_2.x_MCXA156 25.06.00. We adapted the following tutorials to configure the Run time Statistics of FreeRTOS :
https://mcuoneclipse.com/2020/04/15/freertos-task-runtime-statistics-for-nxp-i-mx-rt1064/
https://mcuoneclipse.com/2018/08/02/tutorial-using-runtime-statistics-with-amazon-freertos-v10/
However, the view always display 0.0% for each task despite the hexadecimal values next to the percentage being coherent with the application, here is our view:
Calculating the Runtime percentage of each task using the hexadecimal values seem to corresponds to the task execution (increasing the task frequency, increase this number).
This problem is really similar to this issue :
https://community.nxp.com/t5/MCUXpresso-IDE/FreeRTOS-runtime-stats/td-p/1067434
Is there additional steps needed to display the percentage (compared to the linked tutorials) or is this an MCUXpresso small bug?
Sincerely,
已解决! 转到解答。
Hi Alice,
We solved the issue.
As compared to the previously linked tutorials, two macros must be added in FreeRTOSConfig_Gen.h :
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
#define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 1
In our case "freertos_tasks_c_additions.h" was missing from our project so we added it from the latest SDK example.
Hello @rj_engineer
Could you please send me your project? I’ll help reproduce the issue and investigate it. If it turns out to be an IDE-related problem, I’ll report it to our development team.
Thank you!
BR
Alice
Hi Alice,
We solved the issue.
As compared to the previously linked tutorials, two macros must be added in FreeRTOSConfig_Gen.h :
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
#define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 1
In our case "freertos_tasks_c_additions.h" was missing from our project so we added it from the latest SDK example.