Writing a Real-Time Embedded Operating System Kernel in C

Writing a Real-Time Embedded Operating System Kernel in C

Creating content is not easy, if convenient, please follow, thank you This article is based on a thorough review of authoritative literature and materials, forming professional and reliable content. All data in the full text can be referenced and traced back. Special note: Data and materials have been authorized. This article does not involve any … Read more

Considerations for RTOS Task Stack Allocation

Considerations for RTOS Task Stack Allocation

Follow+Star PublicAccount, don’t miss the wonderful content Author | strongerHuang WeChat Public Account | Embedded Column Some friends asked this question: Do I need to allocate a large stack for a task with a lot of code? Actually, it’s not that the more code there is, the more stack space needs to be allocated. It … 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

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

How to Learn an Embedded System?

How to Learn an Embedded System?

This is a document I found online, where the author’s goal is to design a simple embedded operating system that implements a basic task scheduler. As the author mentioned, although it cannot be called an operating system, it embodies the essence of a small embedded operating system. This serves as excellent learning material for us, … Read more

How to Use Startup Scripts in VxWorks

How to Use Startup Scripts in VxWorks

How to use the startup script in VxWorks is something everyone should know. Here’s an example: Need to define the following two macros: #define INCLUDE_SHELL #define INCLUDE_STARTUP_SCRIPT Called in usrConfig.c: #ifdef INCLUDE_STARTUP_SCRIPT usrStartupScript (startupScriptFieldSplit (sysBootParams.startupScript)); #endif There might be an issue with devices like sata/sd/usb not working. The reason is that this function is executed … Read more

FreeRTOS Operating System: A Comprehensive Guide

FreeRTOS Operating System: A Comprehensive Guide

The manual porting process is complex and tedious. First, use cubemx for quick configuration: First, print a message to the serial port: /* USER CODE BEGIN 2 */ printf("hello shxi\r\n"); /* USER CODE END 2 */ /* Call init function for freertos objects (in freertos.c) */ MX_FREERTOS_Init(); OK proves that the configuration is correct! Tasks … Read more

Understanding RTOS Operation Mechanism Through Video Tutorials

Understanding RTOS Operation Mechanism Through Video Tutorials

In this video tutorial, we will understand the **RTOS** operation mechanism, task management, and task switching from an application perspective. We strive to provide a rich visual experience, as good graphical analysis greatly aids in understanding **RTOS**. In this video, we adopt a step-by-step approach to clarify the operation mechanism of **RTOS**. Tencent Video: Bilibili … Read more

Optimal Stack Size for RTOS Task Allocation

Optimal Stack Size for RTOS Task Allocation

Follow+Star Public Account, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | strongerHuang Many students have such doubts: How much stack space should I allocate when creating a task? If one of my tasks has a larger code size, should I allocate more stack space? Below, I will describe the relevant … Read more

Reverse Engineering FreeRTOS: A Comprehensive Guide

Reverse Engineering FreeRTOS: A Comprehensive Guide

FreeRTOS Introduction FreeRTOS is a mini real-time operating system kernel. As a lightweight operating system, it includes functionalities such as task management, time management, semaphores, message queues, memory management, logging features, software timers, coroutines, etc., which can basically meet the needs of smaller systems. Compiling FreeRTOS Compilation Environment · Windows 10 20H2 · Keil V5.33.0.0 … Read more