Designing Embedded Software Architecture: Task Scheduling

Designing Embedded Software Architecture: Task Scheduling

WeChat Official Account: Follow Orange Crazy Embedded to learn more practical skills in embedded programming. If you have any questions or suggestions, please leave a message on the official account; If you find this article helpful, feel free to like and follow. 1. Introduction In the process of embedded MCU software development, the architecture of … Read more

Creating a Microsecond Resolution Task Scheduling Solution in ThreadX

Creating a Microsecond Resolution Task Scheduling Solution in ThreadX

Explanation:1. In general applications, we usually set the task RTOS system clock tick (heartbeat) to 1ms, but if we directly set the RTOS system clock tick to 1us, the system burden is very high, and many RTOS cannot switch tasks every 1us at a 100MHz main frequency, resulting in the RTOS not having time to … Read more

Understanding the Causes of FreeRTOS Task Scheduling Failures

Understanding the Causes of FreeRTOS Task Scheduling Failures

Recently, a friend and I discussed some strange aspects of the FreeRTOS code generated by STM32CubeMX. void LED01Tog(void const * argument){ /* USER CODE BEGIN LED01Tog */ /* Infinite loop */ for(;;) { HAL_GPIO_TogglePin(GPIOF,GPIO_PIN_10); osDelay(500); } /* USER CODE END LED01Tog */} We added two LED toggle functions, compiled our code, and found that the … Read more

Introduction to FreeRTOS Tasks

Introduction to FreeRTOS Tasks

1. Uses of FreeRTOS FreeRTOS is generally used in hardware designs where there are certain limitations on RAM size (cost, resources, performance-to-power ratio, etc.). It is one of the most widely used real-time operating systems today. Choosing FreeRTOS for project applications generally considers the following aspects: Real-time (time constraints): Like most RTOS, at each clock … Read more

The Importance of Learning RTOS in Embedded Systems

The Importance of Learning RTOS in Embedded Systems

Follow andstar the public account so as not to miss wonderful content Editor: Huang Source: McTai Technology Readers have been asking questions about RTOS, such as:Should I learn RTOS now?What are the benefits of learning RTOS?Should my project run RTOS? ······ Other questions about RTOS essentially stem from insufficient understanding of RTOS and lack of … Read more

Understanding RTOS Scheduling from a Bare-Metal Perspective

Understanding RTOS Scheduling from a Bare-Metal Perspective

Follow+Star Public Account Number, don’t miss the wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Many embedded developers start from bare-metal programming and then move to RTOS. This article shares the basic principles of RTOS scheduling. During the job-hunting season in March and April, here are some embedded-related positions to recommend: It’s normal … 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 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

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