Journal of Jilin University (Information Science Edition) ›› 2022, Vol. 40 ›› Issue (4): 663-671.

Previous Articles     Next Articles

Analysis of mbedOS Scheduling Mechanism Based on ARM Cortex-M4h

LIU Changyong 1a,1b,2 , WANG Yihuai 2   

  1. 1a. Department of Mathematics and Computer Science; 1b. Key Laboratory of Cognitive Computing and Intelligent Information Processing of Fujian Education Institutions, Wuyi University, Wuyishan 354300, China; 2. School of Computer Science and Technology, Soochow University, Suzhou 215006, China
  • Received:2021-12-19 Online:2022-08-16 Published:2022-08-17

Abstract: In order to clearly understand the basic principle and mechanism of mbedos scheduling, the support characteristics of arm cortex-m4 kernel for real-time operating system is studied. The common scheduling strategies of real-time operating system is analyzed. Using the methods of flow chart analysis and
context core code analysis,this paper focuses on the implementation of three mbedos scheduling strategies, SVC( Supervisor Call) interrupt, pendsv interrupt and systick interrupt. Finally, taking stm32l431 chip of STMicroelectronics as an example, the thread scheduling analysis practice of mbedOS is given. By analyzing the thread scheduling of mbedOS, it is helpful for readers to deeply understand the scheduling mechanism of mbedOS, provide help for the design of multitasking system, and also provide reference for the analysis of other real-time operating systems.

Key words: real time operating system; , scheduling strategy, advanced RISC machines ( ARM) Cortex-M4; , mbedOS; , STM32 chip

CLC Number: 

  • TP316. 2