Core Code of FreeRTOS: Task Module (Part 1)

Core Code of FreeRTOS: Task Module (Part 1)

The source code of the task function includes the following parts: Priority handling Task creation Starting the first task Task switching Task blocking/waking This article will not cover all the above points, but will focus on:1. Priority handling2. Creation and starting of the first task1. Priority handlingFreeRTOS tasks are divided into 1-5 different priority levels, … Read more

Getting Started with FreeRTOS – Task Management

Getting Started with FreeRTOS - Task Management

Scan to FollowLearn Embedded Together, learn and grow together This series of articles on FreeRTOS aims to help beginners quickly get started and master the basic principles and usage methods of FreeRTOS while organizing knowledge. Getting Started with FreeRTOS – Exploring the System The official Chinese version of the FreeRTOS website is now online! FreeRTOS … Read more

Learning FreeRTOS: Mutex Semaphores

Learning FreeRTOS: Mutex Semaphores

Scan to followLearn Embedded Together, learn and grow together A mutex semaphore (Mutex, short for Mutual Exclusion) is a special type of binary semaphore in FreeRTOS, specifically designed for implementing mutual access to resources. Compared to ordinary semaphores, mutex semaphores have the following key characteristics: Ownership Concept: Only the task that takes the mutex can … Read more

A Step-by-Step Guide to Developing a Multitasking Project Based on FreeRTOS

A Step-by-Step Guide to Developing a Multitasking Project Based on FreeRTOS

Source | Embedded Software GuesthouseFreeRTOS is currently the most commonly used RTOS, yet many beginners find it difficult to get started. Today, we willprovide a step-by-step guide on how to develop a multitasking project based on FreeRTOS. 1. FreeRTOS Multitasking Basic Architecture 1.1 Overview of Task Model As a lightweight real-time operating system, FreeRTOS’s core … Read more

Learning FreeRTOS: Counting Semaphores

Learning FreeRTOS: Counting Semaphores

Scan to followLearn Embedded Together, learn and grow together This is a series of introductory articles on FreeRTOS. While organizing my knowledge, I hope to help beginners quickly get started and master the basic principles and usage of FreeRTOS. Quick Start with FreeRTOS – Initial Exploration of the System The official Chinese version of the … Read more

Mastering Embedded Multithreading with FreeRTOS: Starting from Tasks

Mastering Embedded Multithreading with FreeRTOS: Starting from Tasks

Detailed Explanation of FreeRTOS Tasks and Development Considerations for ESP32 1. Basics of FreeRTOS Tasks 1. What is a Task? In FreeRTOS, a Task is the basic unit of system scheduling, similar to a thread. Each task is an infinite loop function managed by the FreeRTOS scheduler, which controls the execution order. Tasks are scheduled … Read more

Understanding the Task Module in FreeRTOS (Part 2)

Understanding the Task Module in FreeRTOS (Part 2)

The source code of the task function contains the following parts: 1. Priority handling 2. Task creation 3. Starting the first task 4. Task switching 5. Task blocking/waking The previous article focused on the first three points, while this article will start from the scheduler to discuss the task switching (scheduling) mechanism. 1. Scheduling Mechanism … Read more

FreeRTOS Learning – Creating Tasks (Part 2)

FreeRTOS Learning - Creating Tasks (Part 2)

This article introduces the concept of tasks in the FreeRTOS operating system, including task creation, deletion, and task states.1. TaskFreeRTOS tasks are the core units for implementing concurrent execution of multiple tasks, essentially functions with independent execution environments.Each task is an infinite loop function (or a self-deleting function) that has its own stack space and … Read more

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