软件导刊2026,Vol.25Issue(3):107-114,8.DOI:10.11907/rjdk.242054
基于FreeRTOS优化的嵌入式实时操作系统设计
Design of Embedded Real-Time Operating System Based on FreeRTOS Optimization
摘要
Abstract
Aiming at the problem that the real-time performance of current embedded operating systems does not match the requirements of embedded systems,the performance bottleneck of the FreeRTOS embedded real operating system kernel is deeply analyzed,and a series of in-novative strategies for kernel performance optimization are proposed accordingly.Based on FreeRTOS,a polling scheduling mechanism and a priority-based preemptive scheduling algorithm are combined to schedule tasks to improve the real-time performance of the system;a two-lev-el segmented free list(TLSF)algorithm and a memory pool mechanism are introduced to dynamically allocate and recycle memory,reducing memory fragmentation while achieving fast memory allocation and recycling;a task direct notification communication mechanism is added to enhance the real-time response capability of the system.Based on the above innovative strategies,a Cortex-M-based embedded operating sys-tem CMRTOS is designed.The system architecture adopts a layered design to realize basic and efficient kernel functions.Hardware simulation and example verification show that compared with FreeRTOS,CMRTOS shows significant improvements in memory resource utilization effi-ciency,real-time performance and stability.关键词
嵌入式操作系统/内核功能/任务调度/内存分配/通信机制/实时性Key words
embedded operating system/kernel functionality/task scheduling/memory allocation/communication mechanism/real-time分类
信息技术与安全科学引用本文复制引用
魏杰,尹力,曹晋豪,李凤岐,王德广..基于FreeRTOS优化的嵌入式实时操作系统设计[J].软件导刊,2026,25(3):107-114,8.基金项目
辽宁省国际科技合作计划项目(2022JH2/10700012) (2022JH2/10700012)
辽宁省应用基础研究计划项目(2023JH2/101300188) (2023JH2/101300188)
辽宁省教育厅基础研究项目(JYTMS20230011) (JYTMS20230011)
辽宁省科研基金项目(LJKQZ20222447) (LJKQZ20222447)