首页 | 本学科首页   官方微博 | 高级检索  
     

μC/OS-Ⅱ在微处理器LM3S8962上的移植
引用本文:刘凯,张立民,赵小锋,李平.μC/OS-Ⅱ在微处理器LM3S8962上的移植[J].电子设计工程,2011,19(1):47-50.
作者姓名:刘凯  张立民  赵小锋  李平
作者单位:1. 海军航空工程学院,山东,烟台,264001
2. 江西九江西专保基地,江西,九江,332000
摘    要:基于具有广泛应用前景的ARM Cortex-M3微处理器体系结构,将μC/OS-Ⅱ实时操作系统移植到微处理器LM3S8962。通过分析微处理器LM3S8962和μC/OS-Ⅱ内核结构,并且结合ARM Cortex-M3体系特点,利用ARMCortex-M3所固有的嵌套向量中断控制器(NVIC)和Thumb-2指令集体系结构(ISA),完成了移植μC/OS-Ⅱ所需要的函数的编写,宏的定义和任务堆栈的实现,特别是利用ARM Cortex-M3所提供的新型中断-可挂起系统调用(PendSV)作为实时系统完成任务切换的软中断。给出了部分移植函数的代码,未给出代码的函数也对函数结构进行了详细的描述。通过对移植进行测试,结果表明在时钟频率为20 Hz的情况下系统运行正常,能够正常的完成任务切换,实现了移植的目的。

关 键 词:μC/OS-Ⅱ操作系统  LM3S8962处理器  ARMCortex-M3  移植

Transplantation of μC/OS-Ⅱ on LM3S8962
LIU Kai,ZHANG Li-min,ZHAO Xiao-feng,LI Ping.Transplantation of μC/OS-Ⅱ on LM3S8962[J].Electronic Design Engineering,2011,19(1):47-50.
Authors:LIU Kai  ZHANG Li-min  ZHAO Xiao-feng  LI Ping
Affiliation:1.Naval Aeronautical and Astronautical University,Yantai 264001,China; 2.JiuJiang Specialty Ensure Base,Jiujiang 332000,China)
Abstract:Based on ARM Cortex-M3 microprocessor system construction which has the extensive and applied foreground,this paper made transplantation of μC/OS-Ⅱ on LM3S8962.Through analyzing the structure of LM3S8962 and μC/OS-ⅡI,combined with the characteristic of ARM Cortex-M3,this paper introduced how to transplant μC/OS-Ⅱ operating system on LM3S8962 processor,and some basic problems in the transplantation were also mentioned.Some partial transport functions were provided with code,specially PendSV was used as software interruption to task switch.The functions that we didn’t provide the code was also described by fake code.The test results show that the system can accomplish task switching correctly when clock frequency is 20Hz.That means this system runs correctly and reaches the destination.
Keywords:μC/OS-Ⅱ operating system  LM3S8962 processor  ARM Cortex-M3  transplant
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号