5748G FreeRtos stuck in idle task

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

5748G FreeRtos stuck in idle task

ソリューションへジャンプ
1,047件の閲覧回数
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,019件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 件の賞賛
5 返答(返信)
1,020件の閲覧回数
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,015件の閲覧回数
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,009件の閲覧回数
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,001件の閲覧回数
Niupitang
Contributor III

Thank you for your reply : )

0 件の賞賛
1,028件の閲覧回数
Niupitang
Contributor III

This is my source code, please check it

 

0 件の賞賛