Why Use RTOS with Limited Resources in Microcontrollers?

Why Use RTOS with Limited Resources in Microcontrollers?

For engineers working with microcontrollers, especially those using the 8051 series, the question often arises when discussing RTOS: “Why use RTOS? With such limited resources in microcontrollers, can RTOS ensure efficiency?” In response to this question, I would counter: “What is your purpose in using a microcontroller? Is it to program in C, assembly, or … Read more

Detailed Explanation of Thread Programming: From Basics to Embedded Practice

Detailed Explanation of Thread Programming: From Basics to Embedded Practice

1. Introduction: Why Do We Need Threads? In the previous two documents, we explored the concept of processes, address space, and inter-process communication mechanisms. While processes provide the foundation for multitasking programming, in certain scenarios, the process model can be too heavyweight. Imagine if an application needs to handle multiple concurrent tasks simultaneously; creating a … Read more

Essential for Embedded Systems! Slimming Down the C Standard Library to Just a Few KB: Practical Notes on picolibc

Essential for Embedded Systems! Slimming Down the C Standard Library to Just a Few KB: Practical Notes on picolibc

In simple terms, picolibc is a C standard library (libc) tailored for small embedded devices. It combines the essence of newlib and AVR Libc, targeting systems with extremely limited memory—capable of running on a variety of architectures such as MSP430, RISC-V, ARM, ESP32, and MIPS. The focus is on being small, fast, and testable. Why … Read more

A Must-Read for Embedded Engineers! Guide to Choosing RTOS in Different Fields

A Must-Read for Embedded Engineers! Guide to Choosing RTOS in Different Fields

1. Internet of Things: Low Power + Security is Key Recommended RTOS: FreeRTOS (open-source preferred), Zephyr (new security contender), ThreadX (AIoT tool) Key Points: IoT nodes require extreme minimalism → FreeRTOS kernel <10KB 5G/WiFi devices need security certification → Zephyr supports PSA security standards AIoT complex tasks → ThreadX microsecond-level thread switching 2. Automotive Electronics: … Read more

Technical Communication | Discussion on Embedded Real-Time Operating Systems

Technical Communication | Discussion on Embedded Real-Time Operating Systems

01 Overview An Embedded Real-Time Operating System (RTOS) refers to a type of lightweight operating system that operates in resource-constrained environments (space and time) and can respond to external events within a defined time frame while executing functions. Since the release of the first embedded real-time kernel VRTX32 by Ready System in 1981, the RTOS … Read more

What Should You Prepare for an Embedded Software Engineer Interview?

What Should You Prepare for an Embedded Software Engineer Interview?

1. Define Goals and Positioning You need to choose a direction for your embedded system position based on your current programming skills.2. Prepare Core Embedded Knowledge1. Deep mastery of C languageBasic syntax: variable declaration, control structures, loops, conditional statements.Pointers: the relationship between pointers and arrays, pointers to pointers, dynamic memory allocation.Preprocessor: macro definitions, file inclusion, … 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

In-Depth Analysis of Three Major Directions in Embedded Development: Choose the Right Path to Double Your Salary

In-Depth Analysis of Three Major Directions in Embedded Development: Choose the Right Path to Double Your Salary

In 2025, the embedded talent market will show significant differentiation. Not all embedded engineers can command high salaries. The key lies in the choice of direction. Those who choose the wrong path may find their monthly salary hovering around 12,000 for three years. In contrast, those who select the right track, with the same work … Read more

Understanding Critical Sections in FreeRTOS

Understanding Critical Sections in FreeRTOS

When it comes to critical sections in FreeRTOS, there are several questions that need to be addressed:1. How is the protection of critical sections implemented?2. What is the relationship with interrupt priority?3. Will masking interrupts affect the operating system’s tick timing and cause a temporary loss of the system clock?With these questions in mind, let’s … 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