Should You Use RTOS? Here Are the Answers

Should You Use RTOS? Here Are the Answers

Follow andstar our public account to not miss exciting content Readers have been asking various questions about RTOS, such as: Should I learn RTOS now? What are the benefits of learning RTOS? Should my project run on RTOS? …and other questions regarding RTOS. Ultimately, it boils down to your insufficient understanding of RTOS and lack … Read more

MCU in Embedded Development – Task Management in FreeRTOS

MCU in Embedded Development - Task Management in FreeRTOS

Continuing from the previous article, we have already learned about the porting and startup process of FreeRTOS. Today, we will continue to study the task management part of FreeRTOS, starting with understanding what a task is. 1. Task 1.1 Introduction to Tasks (1) In bare-metal systems, we generally use a front-and-back system for development. If … Read more

FreeRTOS – Task Scheduling Mechanism

FreeRTOS - Task Scheduling Mechanism

Tasks are the smallest units of execution competing for system resources. Multiple tasks with the same priority can share the same priority level. In FreeRTOS, if configUSE_TIME_SLICING is defined as 1, then multiple ready tasks with the same priority will share the processor in a time-slicing manner, where one time slice equals one tick. Task … Read more

Core of HarmonyOS Real-Time Operating System: Detailed Explanation of Task Scheduling Mechanism

Core of HarmonyOS Real-Time Operating System: Detailed Explanation of Task Scheduling Mechanism

Have you ever wondered why your HarmonyOS device can do so many things at once? You can receive calls while gaming, and reply to messages while watching videos. The secret behind this is the task scheduling mechanism. This “traffic control system” determines who goes first and who goes later, directly affecting user experience! What is … Read more

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