Object-Oriented Thinking in MCU Architecture

Object-Oriented Thinking in MCU Architecture

Follow+Star Public Account Number, don’t miss out on exciting contentSource | ERYUESANHIEditor | strongerHuangToday, I will share an article about the microcontroller program framework using time-slicing method combined with source code. Importance of Program Architecture Many people, especially beginners, often write code without an overall plan, leading to increasingly messy code and constant bugs.Ultimately, the … Read more

Microcontroller Programming Framework: Evolution from Polling to Real-Time Operating Systems

Microcontroller Programming Framework: Evolution from Polling to Real-Time Operating Systems

In embedded system development, the choice of microcontroller programming framework is crucial as it directly affects the system’s efficiency, real-time performance, and maintainability. Below are several common microcontroller programming frameworks and their characteristics: 1. Polling without Interrupt FrameworkCharacteristics: All tasks are executed in a fixed order without an interrupt mechanism.Applicable Scenarios: Simple applications with low … 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

STM32FreeRTOS: A Powerful Solution for Implementing Real-Time Operating Systems on Arduino

STM32FreeRTOS: A Powerful Solution for Implementing Real-Time Operating Systems on Arduino

In embedded system development, real-time operating systems (RTOS) are becoming increasingly important. The STM32FreeRTOS library provides Arduino users with an easy way to implement RTOS functionality. This article will delve into the features and usage of STM32FreeRTOS, allowing you to quickly get started with this powerful development tool. What is STM32FreeRTOS? STM32FreeRTOS is a library … Read more

Understanding Task Scheduling in FreeRTOS

Understanding Task Scheduling in FreeRTOS

1. Task Scheduling FreeRTOS is a lightweight real-time operating system kernel, and one of its core functions is task scheduling. Task scheduling is the core mechanism of FreeRTOS, determining which task runs at any given moment, when to switch tasks, and how to handle task priorities. 1.1. Task Definition Task “Task” is the basic execution … Read more

MicroPython: The Mini Power for Embedded Systems!

MicroPython: The Mini Power for Embedded Systems!

MicroPython is a compact Python interpreter specifically designed for microcontrollers and embedded systems. Imagine a world of microcontrollers that once required complex C programming, now being controlled with Python, a simple and friendly language. It’s like giving engineers a VIP pass to the kingdom of smart hardware, lowering the barriers to hardware programming and allowing … Read more

Hello World in FreeRTOS

Hello World in FreeRTOS

What is a Real-Time Operating System (RTOS) A Real-Time Operating System (RTOS) is an operating system specifically designed for real-time applications. Real-time applications require predictable responses within specific time constraints, so RTOS focuses on providing an emphasis on timing constraints to ensure that the system can meet real-time performance requirements. 1. Real-Time Performance: Hard Real-Time … Read more

MCU in Embedded Development – Task Management in FreeRTOS

MCU in Embedded Development - Task Management in FreeRTOS

Continuing from the previous article, we have already learned about the porting and startup process of FreeRTOS. Today, we will continue to study the task management part of FreeRTOS, starting with understanding what a task is. 1. Task 1.1 Introduction to Tasks (1) In bare-metal systems, we generally use a front-and-back system for development. If … Read more

Core of HarmonyOS Real-Time Operating System: Detailed Explanation of Task Scheduling Mechanism

Core of HarmonyOS Real-Time Operating System: Detailed Explanation of Task Scheduling Mechanism

Have you ever wondered why your HarmonyOS device can do so many things at once? You can receive calls while gaming, and reply to messages while watching videos. The secret behind this is the task scheduling mechanism. This “traffic control system” determines who goes first and who goes later, directly affecting user experience! What is … Read more

Is an Embedded Real-Time Operating System Truly Real-Time?

Is an Embedded Real-Time Operating System Truly Real-Time?

We often refer to RTOS (Real Time Operating System) as a real-time operating system, but what exactly is a real-time operating system? Is it truly real-time?This question is likely to be on the minds of many beginners. Brief Overview of RTOS RTOS: Real Time Operating System, which means real-time operating system. According to Baidu Encyclopedia: … Read more