Introduction to MCU Freertos (1)

1 Introduction

Traditional single-chip microcomputer development belongs to bare-metal development, that is, programs are executed in a large loop. However, for some complex projects and projects with many functions, bare metal development is very difficult. At this time, an operating system is required to perform multi-tasking processing. This article is to have a basic understanding of the operating system through the introduction of Freertos.

 2. Commonly used RTOS

Abroad: Freertos, uC/OS, RTX

Domestic: RT-Thread, Huawei LiteOS and AliOS-Things, etc.

3. How to learn RTOS

Beginners develop on the already transplanted system.

But for in-depth study of RTOS, it is necessary to read the RTOS source code patiently.

Explanation: After the introduction of the operating system, since there is no interference between tasks, there is no need to carefully design the program execution flow, and programming will become much simpler.  

4. Development environment

1 STM32Cubemx

2 Keil 5

5. Freertos initialization configuration

For details, see: STM32CubeMX+FreeRTOS-multitasking (thread) lighting .

6. Programming style

 Although the data types used by Freertos are all standard C data types, they have been redefined and have new aliases.

Guess you like

Origin blog.csdn.net/weixin_44597885/article/details/130414159