In-Depth Analysis of FreeRTOS Kernel Source Code: From Task Scheduling to Interrupt Handling

In-Depth Analysis of FreeRTOS Kernel Source Code: From Task Scheduling to Interrupt Handling

In-Depth Analysis of FreeRTOS Kernel Source Code: From Task Scheduling to Interrupt Handling Introduction As a representative of embedded real-time operating systems, FreeRTOS has an elegant and efficient kernel implementation. This article will delve into the key implementations of the FreeRTOS kernel, including task scheduling, memory management, interrupt handling, and other core mechanisms. Task Management … Read more

In-Depth Understanding of FreeRTOS Configuration

In-Depth Understanding of FreeRTOS Configuration

<span>FreeRTOS</span> configuration is implemented through macro definitions to control the behavior of the FreeRTOS kernel, with parameters designed in <span>FreeRTOSConfig.h</span>. Below is a detailed explanation of commonly used configurations. Scheduling Method Whether to enable preemptive scheduling <span>#define configUSE_PREEMPTION 1</span> : Enables preemptive scheduling (<span>preemptive scheduling</span>), allowing higher priority tasks to interrupt lower priority tasks. <span>#define … Read more

Core Mechanisms and Important Concepts of FreeRTOS Development

Core Mechanisms and Important Concepts of FreeRTOS Development

1. Basic Concepts <span>FreeRTOS</span> (Free Real-Time Operating System) is a lightweight open-source real-time operating system designed for embedded devices. It was developed by <span>Real Time Engineers Ltd.</span> and was acquired by Amazon in 2017, becoming part of Amazon FreeRTOS. FreeRTOS supports various architectures such as <span>ARM Cortex-M</span>, <span>RISC-V</span>, <span>AVR</span>, and <span>MIPS</span>, and is widely used … Read more

Developing a Task Scheduling System in C Language

Developing a Task Scheduling System in C Language

Developing a Task Scheduling System in C Language Introduction In software development, a task scheduling system is a very important component. It is responsible for managing and executing multiple tasks, ensuring that they run efficiently and in an orderly manner. This article will guide you through implementing a simple task scheduling system using the C … Read more

RTOS vs Bare Metal: A Performance and Efficiency Showdown in Embedded Development

RTOS vs Bare Metal: A Performance and Efficiency Showdown in Embedded Development

Welcome to <span>LiXin Embedded</span>. In the business world, every choice made during development can determine the success or failure of a project. For instance, whether to use a Real-Time Operating System (RTOS) or to go with bare metal development is a headache-inducing decision. RTOS provides a structured development environment, fully functional and ready to use; … Read more

TinyTask: A Bare-Metal Task Scheduling Marvel in Embedded Systems

TinyTask: A Bare-Metal Task Scheduling Marvel in Embedded Systems

TinyTask: A Bare-Metal Task Scheduling Marvel in Embedded Systems 1. Introduction In the realm of embedded development, efficiently managing tasks and scheduling resources has always been a “thorny issue” for programmers. Faced with resource-constrained microcontrollers, traditional Real-Time Operating Systems (RTOS) are powerful but often daunting due to their complexity and resource appetite. On the other … Read more

How to Set the RTOS Tick Rate Appropriately?

How to Set the RTOS Tick Rate Appropriately?

Recently, a reader asked the following question: Why is the default configuration for the RTOS system tick (Tick) set to 1000? Can I configure it to 100, 10000, or 2000? Many beginners have this question, including myself when I first learned about RTOS. I was confused about what the different tick configurations meant and their … Read more

The Joy of Programmers: RTOS is Not as ‘Hardcore’ as You Think!

The Joy of Programmers: RTOS is Not as 'Hardcore' as You Think!

👨💻 Have you ever doubted life while debugging on your embedded programming journey? Today, let’s understand what the so-called “Real-Time Operating System” (RTOS) really is in the most straightforward and humorous way possible! By the end, you’ll be able to boast: “I am an RTOS veteran!” 🚀 🧠 What is RTOS? Don’t be afraid, it’s … Read more

Principles of Multi-Task Scheduling in Real-Time Operating Systems (RTOS)

Principles of Multi-Task Scheduling in Real-Time Operating Systems (RTOS)

Follow+Star Public Account Number, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | Embedded Column Many friends have been using bare-metal programming for a long time, and when switching to learn RTOS, they often misunderstand many concepts within it. Most people starting to learn about real-time operating systems (RTOS) do not … Read more