Home > other >  FreeRTOS into dead circulation, can't call taskYIELD ().
FreeRTOS into dead circulation, can't call taskYIELD ().

Time:11-19

Himself doing GD32F103 FreeRTOS transplantation study, in the main function creates two serial print tasks, one is printing a helloworld every second, and the other one is print twice per second,
Found in the debugging process of each task is only a print, and the program ran to the FreeRTOS tasks. In the portTASK_FUNCTION function in c card in a for loop can not meet the conditions of call taskYIELD (),
Have met the man who is the same problem, provide a train of thought, thank you!

CodePudding user response:

Wrong, it should be said to create two tasks are carried out only once,

CodePudding user response:

The same printf interface, how do you ensure the task a call, task 2 has no call it? Want to have a semaphore
  • Related