[RTOS] The Night Before Scheduling: Analysis of Interrupt Failure in FreeRTOS
Phenomenon Before FreeRTOS starts scheduling with <span>vTaskStartScheduler()</span>, if FreeRTOS APIs (such as creating semaphores) are called, it will lead to interrupts managed by FreeRTOS being disabled until scheduling begins. Source Code Analysis In the FreeRTOS API, there are critical sections like this: // Common code snippet in FreeRTOS source: entering and exiting critical sections BaseType_t … Read more