Operating Modes of ARM Cortex-M3/M4

Operating Modes of ARM Cortex-M3/M4

In the field of embedded development, the Cortex-M3/M4 processors have become the preferred architecture in areas such as the Internet of Things and industrial control due to their high performance, low power consumption, and rich peripheral support. This article will delve into its core design mechanisms—the cooperative working mechanism of dual stack pointers (MSP/PSP) and … Read more

FreeRTOS Semaphores Explained

FreeRTOS Semaphores Explained

Semaphores Cover generated by Nano Banana 🍌🍌🍌 Using<span><span>binary semaphores</span></span> allows deferring tasks (tasks with high processing load and time consumption) in an interrupt to be completed in a processing (synchronization) task, ensuring that ISR() executes quickly. If the task in the interrupt is very urgent, it can be set to the highest priority, allowing the … Read more

Signals and Semaphores in FreeRTOS

Signals and Semaphores in FreeRTOS

1. Overview of Signals and Semaphores In FreeRTOS, signals and semaphores are both important mechanisms for inter-task communication (IPC), but they serve different purposes and operate differently. 1.1 Signals • In FreeRTOS, signals refer to task notifications, which are a lightweight signaling mechanism. • Each task has a 32-bit notification value. • Can be used … Read more

Navigating the Embedded Engineering Learning Path: A Comprehensive Roadmap

Navigating the Embedded Engineering Learning Path: A Comprehensive Roadmap

What is the Embedded Engineering Roadmap? It is essentially an open-source “learning map” that lists all the necessary software, hardware, soft skills, and toolchains in the embedded field in one comprehensive diagram. Whether you want to learn about microcontrollers, RTOS, DSP, IoT, or even edge AI, you can find the corresponding learning paths and resources … Read more

Comprehensive VxWorks Programming Guide (2025 Edition)

Comprehensive VxWorks Programming Guide (2025 Edition)

VxWorks is one of the most widely used real-time operating systems (RTOS) in critical mission fields such as aerospace, defense, automotive, robotics, and industrial control. VxWorks is trusted for its determinism, safety certification, and security, and continues to evolve, providing developers with modern tools, container support, and flexible programming models. This guide provides a comprehensive … Read more

Introduction to FreeRTOS Basics Part Six

Introduction to FreeRTOS Basics Part Six

Following the previous section, when we use global variables to implement synchronization and mutual exclusion, it is as follows:When the if condition is met, the task switches, and printf may not print completely, so we need to introduce a queue.First, let’s look at a few definitions. Queue (First In First Out) Understanding a queue is … Read more

FreeRTOS Critical Section

FreeRTOS Critical Section

“ In the ESP32 multi-tasking system based on FreeRTOS, sharing resources among multiple tasks or interrupts can easily lead to race conditions. To address this issue, critical sections are essential. The following will elaborate on their function and principles, detail the relevant APIs in the IDF version, and provide code examples in scenarios such as … Read more

Avoid Pitfalls in RTOS LCD Driver Development! A Hardcore Guide for Beginners

Avoid Pitfalls in RTOS LCD Driver Development! A Hardcore Guide for Beginners

Developing an LCD driver under RTOS, are you often confused by FSMC timing and pin configuration? Today, using the STM32 + ILI9341 example, I will guide you step by step from 0 to 1, helping you avoid 90% of the pitfalls! 1. First, understand FSMC and 8080, the ILI9341 supports 8080 parallel timing, and the … Read more

Essential Topics to Prepare for Embedded Software Interviews

Essential Topics to Prepare for Embedded Software Interviews

Pointers and Arrays: Stop Saying “Pointers are Just Addresses” This is the “appetizer” for embedded interviews, but 80% of candidates fail to provide a deep answer. For example, when asked about the “difference between pointers and arrays,” simply stating “the array name is a constant pointer” is insufficient; it must be explained in the context … Read more

Commonly Asked Questions for Embedded MCU Engineers in Interviews

Commonly Asked Questions for Embedded MCU Engineers in Interviews

Some engineers may feel that microcontrollers lack technical depth, but the reality is that microcontrollers encompass a vast array of technologies. From the low-level to applications, it is unlikely that anyone can master all the technologies involved. From the perspective of interviews, let’s discuss the common questions asked for microcontroller engineer positions. 1. What could … Read more