基于Freescale xPC560BEVB硬件平台,将μC/OS-Ⅱ实时操作系统移植到基于PowerArchitecture@体系架构的32位微控制器MPC5604B.针对MPC5604B与μC/OS-Ⅱ内核的特点,对任务切换及堆栈设计进行了详细的分析.通过测试,系统能够正常的完成任务切换,实现了移植的目的,为下一步基于μC/OS—Ⅱ内核的汽车电子控制系统应用程序的开发打下了基础.
Based on Freescale xPC560B EVB hardware platform, the μC/OS - Ⅱ was transplanted to a Power Architecture based 32 bit MPC5604B microcontroller. According to the features of MPC5604B and μC/OS - Ⅱ kernel, the task switching process and stack design were analyzed in detail. It is concluded by test that different tasks in the test system can be switched successfully. The purpose of transplantation was achieved, and the foundation was laid, which can be used to develop the application prngrarn built on the μC/OS - Ⅱ ker nel for automobile electronic control system.