Fading Coder

One Final Commit for the Last Sprint

FreeRTOS Task Switching, State Transitions, and Interrupt Handling on STM32

FreeRTOS Task Switching, State Transitions, and Interrupt Handling on STM32
The Role of FreeRTOS On an STM32 running FreeRTOS, the flow from reset to task startup and multitasking operation is as follows: Reset → ② → ③: Start the first task by calling vTaskStartScheduler(), which triggers an SVC interrupt to launch the first task. ④ → ③: Multitask switching occurs via the S...

Event Flag Synchronization Patterns in Real-Time Operating Systems

Event flags (or event groups) provide bitmap-based synchronization primitives enabling complex coordination patterns between multiple producers and consumers. Unlike counting semaphores, setting an already active flag does not queue additional events; the state remains binary until explicitly cleare...