计算机与现代化

• 数据库与数据挖掘 • 上一篇    下一篇

uC/OSIII内核在STM32F103VET6芯片上的移植研究

  

  1. 甘肃农业大学信息科学技术学院,甘肃兰州730070
  • 收稿日期:2014-05-12 出版日期:2014-10-10 发布日期:2014-11-04
  • 作者简介:逯玉兰(1986),女,甘肃武威人,甘肃农业大学信息科学技术学院助教,硕士,研究方向:农业信息化; 燕振刚(1978),男,甘肃定西人,副教授,兰州大学博士研究生,研究方向:农业信息化 ; 李广(1971),男,内蒙古化德人,教授,博士生导师,研究方向:农业信息化。
  • 基金资助:
    甘肃省自然科学基金资助项目(1308RJZA215)

#br#  Research on Transplantation of uC/OSIII Kernel to SMT32F103VET6

  1. College of Information Science and Technology, Gansu Agricultural University, Lanzhou 730070, China
  • Received:2014-05-12 Online:2014-10-10 Published:2014-11-04

摘要:

为了统一管理微控制器的软硬件资源,使开发者能够更加专注于具体应用,给出一种将uC/OSIII实时操作系统内核移植到STM32F103VET6微控制器上的方法。介绍ARM CortexM3内核的基本特
性及其与uC/OSIII内核移植密切相关的NVIC、中断向量表、PendSV中断以及时钟节拍等核心内容。描绘uC/OSIII内核架构,阐述内核任务调度机制,详述内核移植的具体步骤,包括板级支持包开发
、修改与CPU相关的文件以及如何用ARM汇编语言实现PendSV中断和uC/OSIII内核任务切换。经测试,移植后的uC/OSIII内核能够稳定运行在STM32F103VET6芯片上,成功实现多任务调度。

关键词:  , uC/OSIII, CortexM3, 内核移植, PendSV中断, 任务切换

Abstract:

In order to realize the unified management of software and hardware resources and to make developers concentrate on their own business, this paper introduces a way
of transplanting the realtime kernel uC/OSIII to STM32F103VET6. Basic characteristics and the key contents related to uC/OSIII kernel such as NVIC, PendSV and systick of
CortexM3 are presented. Besides, it also illustrates the uC/OSIII architecture, states the mechanism of context switch and  elaborates the steps of uC/OSIII kernel
transplantation including BSP development, modification of sources files related to CPU and how to implement PendSV and context switch in ARM assembly language. Test results
show that uC/OSIII kernel can be stably run on STM32F103VET6 and the multitask scheduling can also be implemented.

Key words:  uC/OSIII, CortexM3, kernel transplantation, PendSV, context switch

中图分类号: