实时操作系统RT-Thread启动流程剖析  被引量:6

Analysis of startup process of RT-Thread real-time operating system

在线阅读下载全文

作  者:陈瑞雪 王宜怀[1] 王庭琛 CHEN Ruixue;WANG Yihuai;WANG Tingchen(School of Computer Science and Technology,Soochow University,Suzhou 215006,China)

机构地区:[1]苏州大学计算机与科学技术学院,江苏苏州215006

出  处:《现代电子技术》2022年第12期36-42,共7页Modern Electronics Technique

基  金:国家自然科学基金项目(61672369)。

摘  要:RT-Thread实时操作系统具有实时性高、芯片适用广泛等特点,在环境、农业等方面应用较多。了解RT-Thread的内部原理有助于更好地设计应用系统,但目前对该部分的研究较少。为此,文中在给出STM32L431芯片的上电启动过程后,针对板级硬件资源、定时器和调度器等内核资源进行初始化过程分析;再辅以主线程和空闲线程创建流程进行对比分析,同时联合调度器的启动机制剖析,详细解析驻留RT-Thread后系统的启动流程;最后,分析启动过程中FLASH使用情况以及各线程创建前后RAM的分配情况。针对RT-Thread的启动流程研究可为其在不同微控制器上的移植和应用提供技术基础,也能够对分析其他实时操作系统的启动起到参考作用。The RT-Thread real-time operating system is widely used in environment,agriculture and other aspects because of its high real-time performance and wide chip application ranges. The understanding of the internal principle of RT-Thread is helpful to design a better application system,but there is less research on this part at present. After giving the power-on start-up process of STM32L431 chip,the initialization process is analyzed for board level hardware resources,timer,scheduler and other kernel resources,the creation processes of main thread and idle thread are compared and analyzed,and the startup mechanism analysis of the scheduler is combined to analyze the startup process of the system in detail after RT-Thread resides.The use condition of FLASH during startup and the allocation of RAM before and after the creation of each thread are analyzed.The research on the startup process of RT-Thread can not only provide a technical basis for its transplantation and application on different microcontrollers,but also play a reference role in analyzing the startup of other real-time operating systems.

关 键 词:RT-THREAD 实时操作系统 启动流程 线程切换 过程分析 RAM存储 

分 类 号:TN911-34[电子电信—通信与信息系统] TP302.1[电子电信—信息与通信工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象