Understanding Hooks in RTOS Kernels

Understanding Hooks in RTOS Kernels

Follow+Star Public Number, don’t miss the wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Most operating systems on the market have a type of API function interface: HOOK functions (also known as hook functions). HOOK functions can be found in desktop operating systems like Windows, Linux, as well as real-time operating systems like … Read more

Implementing Message Communication in Dual-Core MCU with RTOS

Implementing Message Communication in Dual-Core MCU with RTOS

Follow+Star Public Account Number, don’t miss wonderful content Author | strongerHuang WeChat Official Account | strongerHuang You may often see multi-core CPUs in mobile phones and computers, but multi-core microcontrollers are relatively rare. With the increase in demand and the advancement of technology, microcontrollers are no longer limited to single-core, thus, in recent years dual-core … Read more

Microsecond-Level Delay Solutions in RTOS

Microsecond-Level Delay Solutions in RTOS

Follow+Star Public Account Number, don’t miss the wonderful content Source | MultiMCU EDU Typically, the RTOS system tick is 1KHz, of course, there are cases of 100Hz or 10KHz. At 1KHz, the shortest system delay is 1ms, and in real-time control, there are situations that require microsecond (us) level delays. What should we do? There … Read more

Understanding Inter-Task Communication in RTOS

Understanding Inter-Task Communication in RTOS

Follow+Star PublicAccount, don’t miss out on exciting content Author | strongerHuang WeChat Official Account | strongerHuang I came across an interesting question: why do RTOS tasks not use global variables for inter-task communication when bare-metal code uses global variables? Those who have a deep understanding of RTOS principles, or have read RTOS source code should … Read more

Understanding Global Variable Issues in RTOS Tasks

Understanding Global Variable Issues in RTOS Tasks

This issue: A group friend asked a question in the group: In FreeRTOS, a high-priority task changed the value of a global variable, while a low-priority task was waiting in a loop for the value to change; why did the low-priority task not exit the loop and continue execution after the high-priority task changed the … Read more

Methods for RTOS Multi-Task Access to the Same UART

Methods for RTOS Multi-Task Access to the Same UART

Author | strongerHuang WeChat Official Account | Embedded Column In RTOS multi-task programming, it is common for multiple tasks to access the same hardware (such as UART, I2C, etc.). If not handled properly, it can lead to a “chaotic” situation. There are many methods to handle the “chaotic” situation. Below, based on FreeRTOS, I will … Read more

The Integration of DSP, RTOS, and IoT: A Perfect Match

The Integration of DSP, RTOS, and IoT: A Perfect Match

Follow+Star PublicAccount, don’t miss the wonderful content Source | Network With the comprehensive coverage of basic networks, the Internet of Things (IoT) has developed rapidly, and the number of IoT terminal devices is increasing. This article will discuss the next generation of hybrid DSP technology equipped with RTOS, which is the best choice for the … Read more

Understanding RTOS Priority Preemptive Scheduling

Understanding RTOS Priority Preemptive Scheduling

Follow+Star Public Number, don’t miss wonderful content Source | McuLover666 1. Knowledge Point Consolidation 1.1. Knowledge Point Consolidation The three major elements of a task: task control block, task stack, task entry function, here you can refer to the article: How to write RTOS tasks? 1.2. Doubly Circular Linked List A doubly linked list is … Read more

Understanding RTOS: Preemptive vs Non-Preemptive Kernels

Understanding RTOS: Preemptive vs Non-Preemptive Kernels

Follow+Star Public Account Number, don’t miss exciting content Arrangement | strongerHuang WeChat Public Account | Embedded Column Operating systems are divided into preemptive kernels and non-preemptive kernels, so,RTOS belongs to which type? Let’s talk about the content of preemptive kernels and non-preemptive kernels. Non-Preemptive Kernels Non-preemptive kernels require each task (thread) to do something to … Read more

Implementing Message Communication Between Dual-Core MCUs Using RTOS

Implementing Message Communication Between Dual-Core MCUs Using RTOS

You may often see multi-core CPUs in phones and computers, but multi-core microcontrollers are relatively rare. With the increasing demand and technological advancements, microcontrollers are no longer limited to single-core, and in recent years, dual-core microcontrollers have emerged. You might be curious about how dual-core microcontrollers communicate with each other. In fact, there are many … Read more