Freertos Tasks view show Runtime values but wrong percentage after configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Freertos Tasks view show Runtime values but wrong percentage after configuration

Jump to solution
303 Views
rj_engineer
Contributor III

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:

freertos_runtime_view_no_percentage.png

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,

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
222 Views
rj_engineer
Contributor III

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.

View solution in original post

Tags (2)
0 Kudos
Reply
2 Replies
278 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
223 Views
rj_engineer
Contributor III

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.

Tags (2)
0 Kudos
Reply