5748G FreeRtos stuck in idle task

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

5748G FreeRtos stuck in idle task

Jump to solution
943 Views
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 Kudos
1 Solution
915 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 Kudos
5 Replies
916 Views
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 Kudos
911 Views
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 Kudos
905 Views
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 Kudos
897 Views
Niupitang
Contributor III

Thank you for your reply : )

0 Kudos
924 Views
Niupitang
Contributor III

This is my source code, please check it

 

0 Kudos