Guide to Building an RTOS Kernel (Part 1)

Guide to Building an RTOS Kernel (Part 1)

1IntroductionImagine if the MCU we work with only runs bare-metal programs; when it reaches a thread that includes a delay, our CPU would start to “idle”.To maximize CPU utilization, we need to use an RTOS (Real-Time Operating System). In simple terms, an RTOS is an operating system that schedules all available resources to complete real-time … Read more

Mastering RTOS Fundamentals (Part 1)

Mastering RTOS Fundamentals (Part 1)

This article discusses the three main elements of tasks: task control blocks, task stacks, and task entry functions, and highlights three important considerations when writing RTOS task entry functions. 1. Knowledge Review Before we officially start explaining the content, I will first review some basic knowledge points. Please ensure you have understood and mastered them. … Read more

A Method for Context Switching and Perfect Decoupling in Embedded Programming

A Method for Context Switching and Perfect Decoupling in Embedded Programming

Follow “Embedded Mix” and select “Star the Official Account” to progress together! Source: CSDN Fast Context Switching – cpost Application It is commonly believed that time-consuming operations cannot be executed during interrupts, as this would affect system stability, especially in embedded programming. For programs with an operating system, interrupt handling can be divided into two … Read more

A Solution for Context Switching in Embedded Programming

A Solution for Context Switching in Embedded Programming

Click the card below to follow Arm Technology Academy This article is from CSDN, and it mainly shares a solution for achieving high cohesion and low coupling during context switching in embedded programming.. Original link: https://blog.csdn.net/qq_34245464/article/details/111804661 The demands of embedded programming are ever-changing. To ensure system stability while maintaining code reusability, high cohesion and low … Read more

Embedded Communication Protocol: How Many RTOS Interview Questions Can You Answer?

Embedded Communication Protocol: How Many RTOS Interview Questions Can You Answer?

1. What Is the Task State Machine Model? The task state machine model describes the lifecycle and state transitions of a task. Typical states include: (1) Ready: The task can execute but is waiting for the scheduler to allocate CPU. (2) Running: The task is currently using the CPU to execute. (3) Blocked: The task … Read more

Ethernet Switch Chip Report: AI Boom and Domestic Breakthroughs

Ethernet Switch Chip Report: AI Boom and Domestic Breakthroughs

(Report Producer/Author: CITIC Securities, Huang Yayuan) Detailed Explanation of Switch Chips: Core Components of Switches, Responsible for Forwarding Functions Switches: The Core Foundation of the Digital Economy A switch is a network device used for forwarding electrical (optical) signals, providing a dedicated telecom signal pathway for any two network nodes connected to it, thus forwarding … Read more

Four Networking Methods of Switches and Eight Common Troubleshooting Techniques

Four Networking Methods of Switches and Eight Common Troubleshooting Techniques

The switch is a very important part of network construction, and some friends have doubts about how to choose a switch. Before choosing a switch, you should first understand how switches are used in networking. This article summarizes the networking methods of switches in four network scenarios and common troubleshooting solutions. 1. Small Network A … Read more

Detailed Explanation of Break Statement in C Language

Detailed Explanation of Break Statement in C Language

The break statement is a keyword in C language used to exit the execution of loops or switch statements. The break statement is commonly used to terminate a loop early when a certain condition is met, or to exit the switch statement after matching a certain case. There are two common scenarios for using the … Read more

Building RTOS: A Beginner’s Guide to Embedded OS Development

Building RTOS: A Beginner's Guide to Embedded OS Development

This article will take you through the core concepts of Real-Time Operating Systems (RTOS) in a straightforward manner, gradually guiding you to create a small yet fully functional RTOS. We will cover the basic components of RTOS, task scheduling, portability, and task synchronization mechanisms. 1. Basic Components of RTOS A minimal RTOS typically includes the … Read more

Four Networking Methods for Switches Explained

Four Networking Methods for Switches Explained

Two days ago, the weak current industry network published several networking methods for monitoring systems. Some friends asked what type of switch is suitable for 600 monitoring points? For 200 monitoring points, how to choose a switch? How to network, etc.? Before choosing a switch, I need to understand the project’s networking framework. Once the … Read more