摘要
为了提高实时操作系统下应用程序的简捷性和可移植性并缩短编译时间,文中以RT⁃Thread为例,研究实时操作系统在通用嵌入式计算机架构下的驻留问题,提出BIOS与User程序的功能分离机制以及FLASH、RAM空间划分原则,并设计一种RT⁃Thread系统服务接口的映射方法,以ARM Cortex⁃M系列的STM32L431微控制器为蓝本,实现RT⁃Thread的驻留与User程序的编译。实验结果表明,将RT⁃Thread驻留于BIOS中的方法有效地实现了实时操作系统与User程序的物理隔离,缩短了微控制器应用开发的编译时间,降低了编程难度,可为RT⁃Thread的应用开发提供一种高效途径。
In order to improve the simplicity and portability of application programs in real⁃time operating system and shorten the compilation time,taking RT⁃Thread as an example,the resident of real⁃time operating system based on the general embedded computer architecture is researched.The function separation mechanism of BIOS(basic input/output system)and User program and the space division principle of FLASH and RAM are proposed.The mapping method of RT⁃Thread system service interface is designed.The resident of RT⁃Thread and User program compilation are realized by taking the STM32L431 microcontroller in ARM Cortex⁃M series as the chief source.The experimental results show that the method of staying RT⁃Thread in BIOS can realize the physical isolation between the real⁃time operating system and User program effectively,shorten the compilation time of application development of microcontroller,reduce the programming difficulty,and provide an efficient way for the application development of RT⁃Thread.
作者
许明宇
王宜怀
汪恒
XU Mingyu;WANG Yihuai;WANG Heng(School of Computer Science and Technology,Schoow University,Suzhou 215006,China)
出处
《现代电子技术》
2022年第4期7-12,共6页
Modern Electronics Technique
基金
国家自然科学基金项目(61672369)
江苏高校优势学科建设工程资助项目(PAPD)。