Freertos Tasks view show Runtime values but wrong percentage after configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Freertos Tasks view show Runtime values but wrong percentage after configuration

跳至解决方案
190 次查看
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,

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
109 次查看
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.

在原帖中查看解决方案

标记 (2)
0 项奖励
回复
2 回复数
165 次查看
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 项奖励
回复
110 次查看
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.

标记 (2)
0 项奖励
回复