Fundamentals of Real-Time Operating Systems (RTOS)

Fundamentals of Real-Time Operating Systems (RTOS)

01 Fundamentals of Real-Time Operating Systems (RTOS) Real-Time Operating System (RTOS) is an operating system (OS) designed to provide real-time application processes with data, typically without buffering delays. The key factors in an RTOS are minimal interrupt latency and minimal thread switching latency. The value of an RTOS lies in its response speed or predictability, … Read more

In-Depth Analysis of RTOS Scheduler

In-Depth Analysis of RTOS Scheduler

Autosar OS – Task Management Autosar – OS Scheduler Strategies After reading the above two articles, I believe everyone has a profound understanding of the scheduler and task switching, mastering the operating principles of the scheduler, but there may still be some questions regarding details. For example: how does a task enter the ready state? … Read more

Advantages Of RTOS Over Bare Metal Programming

Advantages Of RTOS Over Bare Metal Programming

Author:Electronic Engineering Magazine, Typesetting by:Xiao Yu WeChat Official Account: Chip Home (ID: chiphome-dy) 1. Concurrency The efficiency of concurrent work in programs is low when writing bare-metal software. Inevitably, there will be a huge while(1) loop in the main program, which contains almost all business logic of the project. Because each piece of business logic … Read more

Porting RTOS to 51 Microcontroller

Porting RTOS to 51 Microcontroller

Previous Articles The official website of STC is a furnace I will never forget. A big shot commented. So, taking this opportunity, let’s take a look at the code he wrote. https://gitee.com/open-ell/freertos The file directory is in my favorite style, and the bsp directory clearly indicates its purpose. Below is an overview of the project. … Read more

Microsecond-Level Delay Solutions on RTOS

Microsecond-Level Delay Solutions on RTOS

Microsecond-Level Delay Design Solutions Generally, in an RTOS system with a clock of 1KHz, the minimum time for thread_sleep() is 1ms. In real-time control, there are situations where microsecond (us) level delays are required. What should we do in this case? There are two implementation approaches for microsecond-level delays: one is to increase the system … Read more

Methods for Multithreaded Access to UART in RTOS

Methods for Multithreaded Access to UART in RTOS

Reader *Shi San* asks: Can the blogger introduce methods for multiple tasks to access the same hardware under RTOS? For example, multiple tasks need to use the serial port to print information. My answer is: Both mutexes and queues can solve the access conflict problem. Multithreaded access to the same serial hardware is commonly used … Read more

Differences Between Coroutines and Tasks in RTOS

Differences Between Coroutines and Tasks in RTOS

We are all familiar with processes and threads, but their terminology might differ in RTOS systems. The term we are familiar with is Task (Task), which is similar to Thread (Thread). You will find that in some places, RTOS tasks are also referred to as threads. However, in RTOS, there is another less common program … Read more

New Method for Achieving Sub-Millisecond Timing Resolution in RTOS

New Method for Achieving Sub-Millisecond Timing Resolution in RTOS

Follow+Star Public Account, don’t miss out on exciting content Source | Micron Technology Have you found it impossible to reduce task scheduling or delay precision below milliseconds when using a Real-Time Operating System (RTOS)? You might have had to write a lot of application code outside of the RTOS. While this approach works, it raises … Read more

What Are the Requirements for Running RTOS on MCU?

What Are the Requirements for Running RTOS on MCU?

Recently, a friend asked the following question: What are the requirements for running RTOS on MCU? This is a very broad question. Currently, there are hundreds of RTOS available on the market. If we talk about the minimum requirements for MCU, I think the requirements are very low; most MCUs on the market can run … Read more

The Challenge of Mutex in RTOS Tasks

The Challenge of Mutex in RTOS Tasks

Author | strongerHuang WeChat Official Account | Embedded Column When developing projects based on RTOS, it is common to encounter mutual exclusion situations, for example: multiple tasks need to use a single UART serial port for data transmission. If mutex locks are not added, a higher priority task may preempt the serial port and send … Read more