FreeRTOS – Task Scheduling Mechanism

FreeRTOS - Task Scheduling Mechanism

Tasks are the smallest units of execution competing for system resources. Multiple tasks with the same priority can share the same priority level. In FreeRTOS, if configUSE_TIME_SLICING is defined as 1, then multiple ready tasks with the same priority will share the processor in a time-slicing manner, where one time slice equals one tick. Task … Read more

Mastering RTOS Fundamentals (Part 1)

Mastering RTOS Fundamentals (Part 1)

This article discusses the three main elements of tasks: task control blocks, task stacks, and task entry functions, and highlights three important considerations when writing RTOS task entry functions. 1. Knowledge Review Before we officially start explaining the content, I will first review some basic knowledge points. Please ensure you have understood and mastered them. … Read more

RTOS: Easily Build Your Own Real-Time Embedded Operating System!

RTOS: Easily Build Your Own Real-Time Embedded Operating System!

Are you still troubled by the complexity of embedded systems? Do you want to make your smart hardware more powerful, stable, and responsive? Then you definitely need to understand Real-Time Operating Systems (RTOS)! It is like magic in the embedded world, granting your devices extraordinary capabilities. Next, we will introduce RTOS, from basic concepts to … Read more

Understanding FreeRTOS Stack Management: A Comprehensive Guide

Understanding FreeRTOS Stack Management: A Comprehensive Guide

Previous Article: Understanding FreeRTOS Application Scenarios In this article, the term “stack” refers to the memory area accessed by the computer (including MCU) processor through the stack pointer register. Common access methods include Push/Pop, as well as indirect addressing based on the stack pointer register. Let’s first review how local variables are stored in C … Read more