5748G FreeRtos stuck in idle task

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

5748G FreeRtos stuck in idle task

跳至解决方案
1,536 次查看
Niupitang
Contributor III

As in the title, I dynamically created three tasks, but after each task is executed, I call vTaskDelay() to enter the blocking state, but when all three tasks enter the blocking state, I get stuck in the idle task and cannot switch back. What is the problem? Woolen cloth?

Niupitang_0-1676079868630.png

The xTickCount value is as follows

Niupitang_1-1676079885967.png

It seems to be executing taskYIELD all the time

Niupitang_2-1676079930153.png

 

 

0 项奖励
回复
1 解答
1,508 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 项奖励
回复
5 回复数
1,509 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Niupitang 

it's probably related to systick, it could be something similar like:

http://www.openrtos.net/FreeRTOS_Support_Forum_Archive/December_2015/freertos_Freertos_stuck_in_vTas...

Regards,

Lukas

0 项奖励
回复
1,504 次查看
Niupitang
Contributor III

Thank you lukaszadrapa, after re-checking here, I found that it is a debugger problem. I am using the U-multlink-FX debugger. In the debug mode, FreeRtos cannot work normally (accurately, the timer seems to be dead. The same), this problem also occurred when debugging STM and PIT before, is there any good solution?

0 项奖励
回复
1,498 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

OK, this is known issue which has not  been fixed yet:

https://community.nxp.com/t5/MPC5xxx/stuck-in-OSIF-TimeDelay/m-p/1348191

Unfortunately the only option now is to use another debugger.

Regards,

Lukas

0 项奖励
回复
1,490 次查看
Niupitang
Contributor III

Thank you for your reply : )

0 项奖励
回复
1,517 次查看
Niupitang
Contributor III

This is my source code, please check it

 

0 项奖励
回复