摘要
介绍μC/OS-Ⅱ操作系统的特点、内核结构和工作原理,并通过对NXP公司LPC2378及ARM7TDMI-S内核体系结构及内部寄存器工作原理的分析,讨论了μC/OS-Ⅱ移植过程中的重难点问题及解决方法,重点阐述移植代码中堆栈初始化、任务切换、时钟中断服务程序的编写过程,并对调试中出现的程序跑飞和堆栈空间不够的问题进行了解决和修改,最后通过设计多任务应用程序证明了该移植是成功的。
The characteristics, kernel structure and the operating principle of the real-time embedded operating system μC/OS-Ⅱ are introduced. Besides, the key problem and the resolution appeared in the μC/OS-Ⅱ transplant are discussed through analyzing the ARM7TDMI-S and the kernel of LPC2378 produced by NXP Company. The process of preparing of Stack ini- tialization, task switch and the clock interrupt service routine are expatiated. The problems of running fly and less of stack space during the debugging program are resolved, the success of transplant is proved by designing the multi-task application on the LPC2378.
出处
《现代电子技术》
2010年第12期33-36,共4页
Modern Electronics Technique