Understanding Interrupt Systems in Microcontrollers and RTOS

Understanding Interrupt Systems in Microcontrollers and RTOS

Abstract: We come across many operating systems in our daily lives, such as Windows, Android, iOS, and Linux. Microcontrollers also have their own operating system, called Real-Time Operating System (RTOS). So, what are the differences between these real-time operating systems and the ones we commonly use? The operating systems we frequently use are actually non-real-time … Read more

How RTOS Divides Tasks

How RTOS Divides Tasks

1. Definition of Tasks In embedded development, we face situations with a single CPU, and during this development process, we may involve bare-metal development or development with an operating system. In bare-metal development, the entire system is viewed from a modular perspective, meaning that after the system finishes running one module, it then runs another … Read more

How RTOS Kernel Manages Interrupts

How RTOS Kernel Manages Interrupts

Source | Mculover666 To develop “advanced” applications based on RTOS, many principles of the kernel must be mastered. This article will explain how the RTOS kernel manages interrupts? How should users write interrupt handler functions? And how can users set critical sections? 1. Review of Knowledge — Interrupts 1.1. Interrupt Mechanism The interrupt mechanism is … Read more

Understanding the Purpose of HOOK Functions in RTOS

Understanding the Purpose of HOOK Functions in RTOS

Follow +Star Public Account Number, don’t miss the wonderful content Author | strongerHuang WeChat Public Account | Embedded Column In many operating systems, there is a type of API function interface: HOOK functions (also known as hook functions). For example: HOOK functions can be found in Windows desktop operating systems, µC/OS, FreeRTOS and other real-time … Read more

Understanding Scheduling Strategies in RTOS Applications

Understanding Scheduling Strategies in RTOS Applications

Follow+Star Public Account, don’t miss out on exciting content Source | Microtech Technology Transitioning from software development with a front-back architecture to using Real-Time Operating Systems (RTOS) can be a challenging task. However, there are many advantages to using RTOS, such as simplifying application integration and supporting task preemption scheduling. It becomes meaningful to use … Read more

Bare Metal vs RTOS Multithreading: A Comprehensive Guide

Bare Metal vs RTOS Multithreading: A Comprehensive Guide

Many beginners start learning from bare metal but often do not understand the difference between bare metal and operating systems. Some even believe that using interrupts can replace multitasking. Do you agree? Bare Metal Systems Bare metal systems are usually divided into polling systems and foreground-background systems. 1. Polling System A polling system is when … Read more

How Multitasking is Implemented in RTOS Real-Time Operating Systems

How Multitasking is Implemented in RTOS Real-Time Operating Systems

Follow our official account to never miss an update! Many friends who have been using bare-metal programming for a long time may have misunderstandings about many concepts when switching to learn RTOS. 1Introduction Most people do not understand some concepts in RTOS when they start learning real-time operating systems. They are often confronted with concepts … Read more

Understanding the RTOS Kernel: A Guide for Beginners

Understanding the RTOS Kernel: A Guide for Beginners

Follow+Star Public Account Number, don’t miss exciting content Author | strongerHuang WeChat Public Account | strongerHuang I recently saw a discussion in a technical group about whether to read the RTOS kernel source code. From the perspective of someone who has been there, I would say: it is not necessary, I do not recommend reading … Read more

Why Not Use Global Variables for Inter-task Communication in RTOS?

Why Not Use Global Variables for Inter-task Communication in RTOS?

Follow+Star Public Account Number, don’t miss wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Students who have a deep understanding of RTOS principles or have read RTOS source code should know: RTOS implements inter-task communication usually by a series of pointers. The “effective data” of inter-task communication is actually implemented by pointers pointing … Read more

Is RTOS Really Real-Time?

Is RTOS Really Real-Time?

We often say RTOS (Real Time Operating System), so what exactly is a real-time operating system? Is it really real-time? I believe many beginners have this question. Brief Introduction to RTOS RTOS:Real Time Operating System, which means real-time operating system. The explanation from Baidu Encyclopedia: A real-time operating system is one that can accept and … Read more