FreeRTOS Source Code Analysis: Task Startup and Switching

FreeRTOS Source Code Analysis – Task Startup and Switching In the previous article, “Embedded Operating Systems: FreeRTOS Source Code Analysis Part Two – Task Creation,” we analyzed how tasks are created and added to the linked list. Now, we return to SVC 0, and after calling this statement, the first task will officially start.In this … Read more

The Essence of Task Switching in FreeRTOS

The Essence of Task Switching in FreeRTOS

“ In embedded development, multi-task concurrency relies on task switching. This article focuses on FreeRTOS, starting from the concept of task switching, breaking down its “trigger → request → execute” process, analyzing core function source code and functionality, helping developers understand the logic of hardware-software co-design, and mastering practical methods for optimizing task scheduling and … Read more

In-Depth Explanation of FreeRTOS Multitasking Switching Principles

In-Depth Explanation of FreeRTOS Multitasking Switching Principles

It suddenly dawned on me; I realized that I had a strong feeling for FreeRTOS after seeing a lot of assembly code during Keli’s debugging, running so fast that we didn’t even notice the frequent task switching. 1. The Essence of Multitasking Execution 1.1 Core Concepts On a single-core MCU, multitasking does not truly execute … Read more

Guide to Building an RTOS Kernel (Part 1)

Guide to Building an RTOS Kernel (Part 1)

1IntroductionImagine if the MCU we work with only runs bare-metal programs; when it reaches a thread that includes a delay, our CPU would start to “idle”.To maximize CPU utilization, we need to use an RTOS (Real-Time Operating System). In simple terms, an RTOS is an operating system that schedules all available resources to complete real-time … Read more

FreeRTOS Study Notes: Interrupts and Task Switching

FreeRTOS Study Notes: Interrupts and Task Switching

EEWorld Electronic News Sharp Interpretation Technical Insights Updated Daily With FreeRTOS providing memory resources for tasks through stack management mechanisms, it can perform context switching based on task status and priority, and offers communication channels for necessary task synchronization and mutual exclusion, multiple tasks can work together. However, since it is called a Real-Time Operating … Read more

FreeRTOS Task States and Switching: A Comprehensive Guide

FreeRTOS Task States and Switching: A Comprehensive Guide

EEWORLD Electronic News Sharp Interpretation Technical Dry Goods Updated Daily Recommended by: cruelfox If you are also willing to become an EEWorld WeChat Recommender, please participate: EEWorld WeChat is in your hands, recommend casually to earn red envelopes! FreeRTOS tasks have the following states: Running Running Ready Ready Blocked Blocked Suspended Suspended Except for the … Read more