FreeRTOS Learning Notes (Part 9) β€” Task State Information and Runtime Statistics

FreeRTOS Learning Notes (Part 9) β€” Task State Information and Runtime Statistics

πŸŽ€ Article Author: Ertu Electronics 🌸 Follow the public account at the end of the article to obtain other materials and project files!🐸 Looking forward to learning and communicating together! @TOC 1. Related API Functions First, let’s understand some API functions for querying task state information and runtime statistics. There are many functions available. Task-related … Read more

MCU CPU Utilization Statistics in Embedded Development

MCU CPU Utilization Statistics in Embedded Development

In FreeRTOS, CPU utilization statistics are an important feature that helps you understand the performance of tasks and the system. This chapter will explain how to evaluate CPU utilization in FreeRTOS. Let’s learn together. First, let’s discuss what CPU utilization is. CPU utilization refers to the CPU resources occupied by the programs running on the … Read more

FreeRTOS Task Management

FreeRTOS Task Management

Task Management Single-task system for front and back ends Divide and conquer multi-task system FreeRTOS is a preemptive real-time multi-tasking system, where the core task scheduler allows multiple tasks to appear to execute “in parallel”, while in reality, only one task occupies the CPU at any given time. Tasks Task State β€’ running β€’ not … Read more

Understanding the MCP Workflow: Intelligent Agents and Multi-Agent-Manus!

Understanding the MCP Workflow: Intelligent Agents and Multi-Agent-Manus!

As AI enters the “usable stage,” how can we build a truly efficient, flexible, and controllable intelligent agent system? Relying solely on a “smart large model” is clearly not enough. For genuinely complex tasks, a clearly defined “team operation” is essential. The Multi-Agent-Manus (MCP process) has emerged, which is not just a simple execution chain … Read more

Introduction to FreeRTOS

Introduction to FreeRTOS

1. Overview of FreeRTOS FreeRTOS is a lightweight, open-source real-time operating system suitable for embedded systems. It provides features such as task scheduling, synchronization, and communication, characterized by its portability, configurability, and efficiency, making it widely used in resource-constrained embedded devices. 2. FreeRTOS File Structure (1) Source Folder This contains the core source code of … Read more

An Introduction to FreeRTOS Kernel Source Code: From Task Creation to Context Switching

An Introduction to FreeRTOS Kernel Source Code: From Task Creation to Context Switching

1. Introduction FreeRTOS has become the preferred choice for embedded real-time systems due to its small footprint, portability, and flexible customization capabilities. Before delving into the source code, let us review the core requirements of real-time operating systems (RTOS) in the embedded field: Determinism: Predictable task response delays. Scalability: Support for memory usage ranging from … Read more

How to Run Cron Jobs Every 5, 10, 15, or 30 Minutes in Linux

How to Run Cron Jobs Every 5, 10, 15, or 30 Minutes in Linux

In Linux systems, <span>Cron</span> is a powerful tool for automating repetitive tasks. By configuring <span>Cron</span> appropriately, users can easily schedule tasks to run every 5, 10, 15, or 30 minutes. This article will delve into how to use <span>Cron</span> to implement scheduled tasks at these intervals, covering everything from basic concepts to advanced configurations, aiming … Read more

Understanding the Basic RTOS Features of VxWorks: A Practical Guide for Engineers

Understanding the Basic RTOS Features of VxWorks: A Practical Guide for Engineers

Understanding the Basic RTOS Features of VxWorks: A Practical Guide for Engineers VxWorks is a real-time operating system (RTOS) developed by Wind River, widely adopted in mission-critical embedded systems. This article will introduce the fundamental features of VxWorks, including task control, inter-process communication (IPC), signal handling, and virtual devices, along with practical code examples. Why … Read more

FreeRTOS Multitasking Development: Building Efficient and Stable Embedded Systems

FreeRTOS Multitasking Development: Building Efficient and Stable Embedded Systems

1. FreeRTOS Multitasking Architecture 1.1 Overview of Task Model As a lightweight real-time operating system, the core of FreeRTOS is its multitasking capability. In FreeRTOS, applications are organized as a set of independent tasks, each executing in its own context (such as a separate stack space) without dependencies on each other. Each task can be … Read more

What to Do When You Encounter Stack Overflow While Porting RTOS?

What to Do When You Encounter Stack Overflow While Porting RTOS?

Click the above blue text to follow us In embedded systems, RTOS meets strict timing requirements by managing multiple tasks. Task stack management is a critical aspect of RTOS development, especially when porting RTOS to new hardware platforms. Stack overflow is a common error in embedded development that can lead to memory corruption, unpredictable system … Read more