RTOS Kernel Optimization: Achieve 0.1μs Response Time

RTOS Kernel Optimization: Achieve 0.1μs Response Time

PART.01Performance Kill: Three Major Tricks to Push RTOS Kernel to the Limit1. Interrupt Response: The “Bloody Evolution” from μs to Clock Cycles Traditional Solution: FreeRTOS default interrupt latency ≥5μs (some industrial control devices measured directly up to 8.7μs); Huawei Black Technology: L1 Cache Preloading Mechanism (measured on Hisilicon Hi1812 chip): T_{latency} = T_{int} + \lceil … Read more

In-Depth Study of Dynamic Task Priority Adjustment: Problem Analysis and Solutions

In-Depth Study of Dynamic Task Priority Adjustment: Problem Analysis and Solutions

In-Depth Study of Dynamic Task Priority Adjustment: Problem Analysis and Solutions1. IntroductionDynamic task priority adjustment is a widely adopted scheduling strategy in modern real-time systems, cloud computing, edge computing, and other fields. It dynamically changes the execution order of tasks based on their real-time status, resource requirements, and system load to improve resource utilization and … Read more

FC7300 Three-Core MCU from Qichip Micro Adapted for FreeRTOS SMP

FC7300 Three-Core MCU from Qichip Micro Adapted for FreeRTOS SMP

Consumer-grade, industrial-grade, and automotive-grade multi-core MCUs have gradually become popular from high-end applications, especially in the automotive sector where some high-end specifications have reached six cores. The operating systems for automotive multi-core MCUs are generally adapted by basic software manufacturers, with FreeRTOS being less common. However, automotive MCUs still hold significance for applications that do … Read more

Choosing the Right Real-Time Operating System for Your Embedded System

Choosing the Right Real-Time Operating System for Your Embedded System

Selecting the correct Real-Time Operating System (RTOS) is crucial for the performance, reliability, and efficiency of embedded system development. This article will guide you through understanding RTOS, its components, advantages and disadvantages, and types, as well as how to choose the best real-time operating system for your application. This article serves as a guide, providing … Read more

A Comprehensive Comparison of Embedded Development: RTOS vs Bare Metal

A Comprehensive Comparison of Embedded Development: RTOS vs Bare Metal

In embedded development, the argument of “using RTOS to improve efficiency” is often mentioned, but in actual projects, there is often a counterintuitive phenomenon of “the system becoming slower.” This article clarifies the core differences between RTOS and bare metal from a technical perspective, providing direct decision-making advice in just three minutes. 1. Analysis of … Read more

Implementing a Simple FreeRTOS: Core Code Overview

Implementing a Simple FreeRTOS: Core Code Overview

Introduction: In embedded system development, Real-Time Operating Systems (RTOS) play a crucial role in effectively managing the execution of multiple tasks, enhancing system concurrency and response speed. FreeRTOS, as a widely used open-source RTOS, has core design concepts and implementation mechanisms that are worth in-depth study and learning. To better understand how an RTOS works, … Read more

A Brief Discussion on Real-Time Operating Systems (RTOS)

A Brief Discussion on Real-Time Operating Systems (RTOS)

01 What is a Real-Time Operating System (RTOS)? A Real-Time Operating System (RTOS) is an operating system designed to serve real-time applications. Such operating systems can quickly respond to and process data, with processing time requirements measured in increments of 0.1 seconds. The results must be able to control production processes or respond quickly to … Read more

From Bare Metal to Real-Time Operating Systems (RTOS): When to Make the Switch?

From Bare Metal to Real-Time Operating Systems (RTOS): When to Make the Switch?

Kunvar Chokshi is an embedded development engineer with over ten years of embedded experience. The Edian team provided the translation. Embedded developers typically start their projects in the bare metal domain—without an operating system, no multitasking, just raw code running directly on the hardware. This approach is all about direct register manipulation and peripheral control … Read more

Task Scheduling in FreeRTOS – Startup

Task Scheduling in FreeRTOS - Startup

One of the core tasks of an operating system is task scheduling. Tasks have different names in different operating systems, such as task, thread, or process, with processes typically associated with independent address spaces. The goals of scheduling are to ensure fairness, real-time performance (for real-time systems), maximize CPU utilization, and meet task priority requirements. … Read more

From Task Scheduling to Interrupt Management: The ESP32-FreeRTOS Example Library to Kickstart Your IoT Development

From Task Scheduling to Interrupt Management: The ESP32-FreeRTOS Example Library to Kickstart Your IoT Development

When you are still struggling with the “while(1)” loop in microcontroller programming, the absence of a Real-Time Operating System (RTOS) has become the biggest obstacle to advancing your project. The ESP32-freeRTOS open-source project provides over 20 practical examples, allowing you to easily implement task scheduling, resource synchronization, and interrupt management in C, completely bidding farewell … Read more