An OS-less Microcontroller Software Framework

An OS-less Microcontroller Software Framework

1 Introduction An OS-less MCU practical software framework includes task polling management, command manager, low power management, circular buffer, and other practical modules. The system extensively utilizes custom segment technology to reduce coupling between various modules, significantly improving program maintainability. 2 Main Features Supports automated module management and provides different priority level initialization declaration interfaces. … Read more

The Role of the Idle Task in FreeRTOS

The Role of the Idle Task in FreeRTOS

The idle task is a core task automatically managed by the FreeRTOS kernel, designed to ensure the basic operation of the system when no user tasks are running. This article provides a comprehensive explanation from four dimensions: lifecycle, core functions, practical code, and execution flow, along with best practices. 01 — The Lifecycle of the … Read more

Disassembly of Xiaomi Air Conditioner Remote Control: How One MCU Handles All Functions?

Disassembly of Xiaomi Air Conditioner Remote Control: How One MCU Handles All Functions?

Recently, I took a look at the Xiaomi air conditioner remote control at home and was curious about how Xiaomi would design the entire solution, so I decided to disassemble it. Upon disassembly, I found that there was no independent LCD segment display driver, no LDO, and no infrared transmission driver circuit. The core chip … Read more

Detailed Explanation of the Cortex-M3 Embedded System Programming Model (Part 1)

Detailed Explanation of the Cortex-M3 Embedded System Programming Model (Part 1)

In embedded systems, Cortex-M3 is a 32 bit RISC processor core designed by ARM and is widely used in low-power, real-time applications (such as IoT, industrial control, etc.). Its programming model defines the architectural features, registers, memory access, exception handling mechanisms, and other aspects that developers need to understand. Below are the core contents of … Read more

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

01Introduction: The DSPS (Dialog Serial Port Service) protocol stack is based on the BLE GATT protocol to implement serial data transmission. The core process is divided into four stages: initialization, connection management, data transmission, and low power control. Initialization → Broadcasting/Scanning → Establishing Connection → Data Transmission → Sleep/Wake → Disconnect → Loop 02Detailed Flowchart … Read more