摘要
RT Thread是一个物联网实时操作系统(RTOS),它提供了线程调度、时钟管理、内存管理、线程同步与通信、中断管理等基本功能要素,具有组件完整丰富、高度可伸缩、简易开发、超低功耗、高安全性等特点。在深入分析RT Thread的功能要素和函数调用关系基础上,简要给出了其在STM32单片机芯片上的启动流程,重点剖析了RT Thread的芯片上电、板级初始化、定时器初始化、调度器初始化、线程创建、线程切换等流程,可作为RT Thread在不同微控制器上移植的技术基础,也可作为分析其他RTOS启动过程的技术参考。
RT Thread is a real-time operating system(RTOS)for the Internet of Things.It provides basic functional elements such as thread scheduling,clock management,memory management,thread communication,interrupt management and so on.It has features of complete and rich components,high scalability,easy development,ultra-low power consumption,high security and so on.On the basis of in-depth analysis of functional elements and function call relationship of RT Thread,the startup process of STM32 microcontroller chip is briefly given,focusing on the analysis of RT Thread chip power-on,board-level initialization,timer initialization,scheduler initialization,thread creation,thread switch and other processes.It provides a technical basis for the transplantation of RT Thread on different microcontrollers,and can also be used as a technical reference to analyze the startup process of other RTOS.
作者
赵剑川
赵静
欧启标
张宇
张检保
Zhao Jianchuan;Zhao Jing;Ou Qibiao;Zhang Yu;Zhang Jianbao(Guangdong Vocational College of Mechanical and Electrical Technology,Guangzhou 510000,China)
出处
《单片机与嵌入式系统应用》
2022年第6期22-25,共4页
Microcontrollers & Embedded Systems