11 FreeRTOS Task-Related API Functions

11 FreeRTOS Task-Related API Functions

1. Introduction to Other FreeRTOS Task-Related API Functions 1. Introduction to FreeRTOS Task-Related API Functions (Commonly Used) Answer: 2. Task Status Query API Functions 1. Function to Get Task Priority Answer: UBaseType_t uxTaskPriorityGet( const TaskHandle_t xTask ) This function is used to get the priority of a specified task. To use this function, the macro … Read more

Where Does the RTOS Task Entry Function Go After Execution?

Where Does the RTOS Task Entry Function Go After Execution?

1. Introduction During my work, I found that understanding these concepts only allows one to use RTOS at a basic level. To effectively utilize RTOS, one must understand some detailed mechanisms; otherwise, it is easy to fall into pitfalls and spend a lot of time troubleshooting. This article discusses related content in conjunction with the … 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

Analysis of FreeRTOS Queues

Analysis of FreeRTOS Queues

1. Introduction to Queues A queue is a mechanism for data exchange between tasks, tasks and interrupts, and interrupts and tasks. Based on queues, FreeRTOS implements various functionalities such as queue sets and semaphores. All communication and synchronization mechanisms in FreeRTOS are based on queues. Queues have the following characteristics: 1.1. Data Storage Queues can … Read more

Twinko AI | Microsoft: AI Agent Orchestration Patterns

Twinko AI | Microsoft: AI Agent Orchestration Patterns

Twinko AI | Microsoft This article systematically organizes various AI agent orchestration patterns, providing a reference for architects and developers when building multi-agent (AI Agent) systems. As the capabilities of language models enhance, a single agent struggles to handle complex tasks, making multi-agent collaboration a trend. The article details five core patterns: Sequential Orchestration (linear … Read more

Task Analysis in FreeRTOS

Task Analysis in FreeRTOS

1.1 Task StatesApplications can contain multiple tasks, but generally, a microcontroller (MCU) in an application has only one core, meaning that at any given time, only one task is actually executed. This means a task can have one of two states, namelyRunning StateandNon-Running State. However, the non-running state can be further divided into several sub-states. … Read more

Common Issues with STM32-FreeRTOS Adaptation for LVGL

Common Issues with STM32-FreeRTOS Adaptation for LVGL

Introduction If you find reading text tiring, you can directly search for the account name “Embedded Crafter” (same on Bilibili / Douyin / Xiaohongshu), where the video combines explanations with practical operations, making it much more efficient than just reading the documentation. Heartbeat Function If you are using FreeRTOS configured with STM32Cubemx, you need to … Read more

Index of FreeRTOS Tutorials

Index of FreeRTOS Tutorials

1. Design of FreeRTOS Task Data Structures This article discusses the basic unit of resource management in FreeRTOS – the task data structure, providing readers with a macro understanding of task (process) management in embedded operating systems. Medical Engineering Notes, WeChat Official Account: Medical Engineering Notes FreeRTOS Core Mechanism Analysis: Task Structure Design 2. FreeRTOS … Read more

Memory Management in FreeRTOS

Memory Management in FreeRTOS

Scan to FollowLearn Embedded Together, learn and grow together This is a series of introductory articles on FreeRTOS, aimed at helping beginners quickly get started and master the basic principles and usage methods of FreeRTOS while organizing their own knowledge. Quick Start with FreeRTOS – An Introduction to the System FreeRTOS Official Chinese Website is … Read more

FreeRTOS – Semaphore Overview

FreeRTOS - Semaphore Overview

This article introduces the concept and usage of semaphores in the FreeRTOS operating system. It demonstrates resource sharing between different tasks through button presses and serial communication. Introduction A semaphore is a synchronization mechanism used for resource management when multiple tasks access the same resource. Semaphores can be categorized into binary semaphores (similar to “flags”, … Read more