Based on the ARM Cortex-M3 microprocessor architecture with broad application prospects, the μC/OS-II real-time operating system is ported to the microprocessor LM3S8962. By analyzing the microprocessor LM3S8962 and μC/OS-II kernel structures, and combining the characteristics of the ARM Cortex-M3 system, the nested vector interrupt controller (NVIC) and Thumb-2 instruction set architecture (ISA) inherent in the ARM Cortex-M3 are used to complete the writing of the functions required for porting μC/OS-II, the definition of macros and the implementation of the task stack. In particular, the new interrupt provided by the ARM Cortex-M3 - the suspendable system call (PendSV) is used as a soft interrupt for the real-time system to complete task switching. The code of some ported functions is given, and the function structure is also described in detail for the functions without code. Through the test of the porting, the results show that the system runs normally under the clock frequency of 20 Hz, and can complete the task switching normally, achieving the purpose of porting.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore