Understanding the Timer Module in FreeRTOS

Understanding the Timer Module in FreeRTOS

Introduction:In modern embedded systems, timers are one of the core components for task scheduling, event triggering, and resource management. However, hardware timer resources are limited, making it difficult to meet the diverse timing requirements in complex application scenarios.The software timer module in FreeRTOS is a key component in real-time systems. By utilizing virtualization technology, it … Read more

FreeRTOS Development: Message Buffer – An Advanced Choice for Task Communication

FreeRTOS Development: Message Buffer - An Advanced Choice for Task Communication

1. Basic Concepts In FreeRTOS, the “message buffer” refers to <span>Message Buffer</span>, which is a communication mechanism provided by FreeRTOS for transmitting variable-length data (byte streams) between tasks or between interrupts and tasks. It is part of FreeRTOS and was officially introduced in version <span>v10.0.0</span>. Simply put, a message buffer (Message Buffer) is equivalent to … Read more

Priority Inversion Problem in FreeRTOS

Priority Inversion Problem in FreeRTOS

Priority inversion in FreeRTOS occurs when a high-priority task is blocked while waiting for resources (such as a mutex) held by a low-priority task, allowing a medium-priority task to execute in the meantime, which leads to scheduling anomalies where the high-priority task cannot run in a timely manner. Scenario Example: Task Priorities: There are three … Read more

Translation – Insights on Priority Scheduling Algorithms

Translation - Insights on Priority Scheduling Algorithms

Author : Cyan_RA9 Sharing with everyoneEnglish translations, including computer English textbooks, computer fundamentals, Chinese and English poetry, English classics, daily conversations, etc. For each article, I will provide four parts: “Original Content”, “First Version Translation”, “Second Version Translation”, and “Vocabulary List”. Translation — Insights on Priority Scheduling Algorithms 【Original Content】 Priority Scheduling Algorithm (PSA): Functional … Read more

When LLM Meets Hardware: Unlocking the Next Productivity of Embedded AI

When LLM Meets Hardware: Unlocking the Next Productivity of Embedded AI

【Have you ever thought about?】 A palm-sized development board can run its own privatized large model Industrial equipment can provide real-time feedback on fault sources through natural language Local computing power in smart homes can also understand your vague commands We are entering a new era—LLMs (Large Language Models) are no longer just “behemoths” in … Read more

How to Solve the Priority Inversion Problem in RTOS?

How to Solve the Priority Inversion Problem in RTOS?

Hello everyone, I am the Intelligence Guy~ During the development process of RTOS, you must have encountered the issue of priority inversion, where a low-priority task is preempted by a higher-priority task due to shared resource access, which contradicts the real-time performance of a preemptive kernel. The core of solving the priority inversion problem in … Read more

ESP32 Multicore Programming Techniques: Interrupt Handling Mechanism

ESP32 Multicore Programming Techniques: Interrupt Handling Mechanism

In the dual-core architecture of the ESP32, the interrupt handling mechanism is key to achieving efficient real-time response. The ESP32 supports multicore interrupt handling (Core 0 and Core 1), but it needs to be combined with FreeRTOS task scheduling and synchronization mechanisms to fully leverage its performance. Below are the core technologies, configuration methods, and … Read more

How to Choose Among Three Main Real-Time Solutions for Embedded Linux?

How to Choose Among Three Main Real-Time Solutions for Embedded Linux?

Content Hello everyone, I am Bug Jun~ Recently, our project had high real-time requirements, so I took some time to study various solutions for achieving strong real-time performance in Linux. In summary, there are three main architectural approaches for achieving strong real-time performance in Linux: Preemption Real-Time Systems, Xenomai Real-Time Systems, and AMP Dual Systems. … Read more

FreeRTOS Scheduling Algorithms

FreeRTOS Scheduling Algorithms

Scheduling Algorithms The core point of FreeRTOS is how to determine which ready task can be switched to the running state, based on when and how a task is selected for execution. Priority-based preemptive scheduling can be further divided into time-slicing and non-time-slicing. Cooperative Review Points • The running task is in the Running state; … Read more

Why is a Microcontroller System Called an Embedded System?

Why is a Microcontroller System Called an Embedded System?

Whether studying microcontrollers in school or in job postings, the development of microcontrollers is referred to as embedded, such as embedded systems, embedded software, and hardware engineers, etc. But why is it called embedded? This has always been a point of confusion, so today we will explore this peculiar term “embedded”.1. What is embedded?The official … Read more