Fading Coder

One Final Commit for the Last Sprint

Understanding the FreeRTOS Task Scheduler Initialization Process

In FreeRTOS, the task scheduler acts as the heart of the real-time operating system, managing the lifecycle and execution flow of concurrent tasks. On platforms like the STM32, launching the scheduler involves a sequence of low-level hardware and software configurations. 1. Initiating the Scheduler...

Implementing Task Management and Binary Semaphores in FreeRTOS for STM32

Task Execution Mechanism When a task is successfully created, it's placed in the ready queue. Once the scheduler starts, it selects the highest-priority task from this queue for execution. If multiple tasks share the same priority, they execute in the order they were created. During execution, a tas...

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...