[embedded] transplantation of FreeRTOS, task running status and optimization and improvement of source code

preface FreeRTOS is very popular in the embedded field because of its simplicity, compactness and complete functions. As shown in the figure below, FreeRTOS is the real-time operating system with the largest market share in the global embedded field except Linux. uCOS, RTX, ThreadX, etc. are far behind. In addition, it has been acquired by ...

Posted by Deemo on Mon, 06 Dec 2021 17:30:34 -0800

[freeRTOS Development Notes] Why is the xTaskCreate interface stuck and does not return

1 Preface Recently, bloggers are doing some projects to adapt freeRTOS. In short, they are migrating from other RTOS platforms to freeRTOS platform. Since the previous codes are available, based on experience, we think that we only need to re encapsulate the interface of OSAL, and the upper logic should not be a problem in theory; But wh ...

Posted by dk44 on Tue, 16 Nov 2021 07:06:46 -0800

9, FreeRTOS -- idle task hook function

Idle task hook function To: detailed explanation of idle task hook function Note: the idle task hook function will also occupy cpu resources. The idle task hook function should be used reasonably Experiment 1: continuously create tasks Circle focus First, a task flag1 is created_ Task Task 1 created Flag2_Task, pay attentio ...

Posted by billborric on Mon, 27 Sep 2021 06:18:55 -0700

Semaphore of FreeRTOS

1, Semaphore introduction Semaphores are an important part of the operating system. Semaphores are generally used for resource management and task synchronization. Semaphores in FreeRTOS are divided into binary semaphores, counting semaphores, mutually exclusive semaphores and recursive mutually exclusive semaphores. Different semaphores have ...

Posted by rvpals on Wed, 22 Sep 2021 23:23:07 -0700

FreeRTOS learning notes - interrupt configuration and critical section

background The Nb IOT communication chip of XX company is used in the project, and the OPEN-CPU scheme is adopted as the product. In the OPEN-CPU scheme, I understand that it is an application mode with the communication module as the main processor. The advantages will not be discussed. For details, see What does the blogger know . Take ...

Posted by john-iom on Wed, 22 Sep 2021 22:26:41 -0700

FreeRTOS_ time management

Portal: Blog summary post Note content reference (FreeRTOS Development Manual of punctual atom, authoritative guide of Cortex-M3, authoritative guide of Cortex-M3 and Cortex-M4, etc.) and network notes Code environment: FreeRTOS generated by CubeMX (STM32F407) outline FreeRTOS time management part mainly involves system b ...

Posted by toxic_brain on Sun, 12 Sep 2021 14:37:10 -0700

FreeRTOS_ Interrupt configuration

Portal: Blog summary post Portal: Cortex-M3_ Interrupt, exception Portal: Cortex-M3 notes_ Basics Note content reference (FreeRTOS Development Manual of punctual atom, authoritative guide of Cortex-M3, authoritative guide of Cortex-M3 and Cortex-M4, etc.) 1. Interrupt configuration macro When STM32 uses FreeRTOS, the priority g ...

Posted by mndwn on Sun, 12 Sep 2021 00:40:36 -0700