1、 本科毕业论文(设计)本科毕业论文(设计) 论文题目论文题目 : 基于基于 STM32 的嵌入式操作系统的嵌入式操作系统 程序设计及实程序设计及实现现 姓姓 名名 : 学学 号号 : 班班 级级 : 年年 级级 : 2009 级级 专专 业业 : 电子信息工程电子信息工程 学学 院院 : 信息工程信息工程学院学院 指导教师指导教师 : 完成时间完成时间 : 2013 年年 5 月月 20 日日 基于基于 STM32STM32 的嵌入式操作系统的嵌入式操作系统 程序设计及实现程序设计及实现 The Design and Implementation of embedded operating s
2、ystem program based on STM32 1 摘摘 要要 随着科学技术不断的进步,工业生产越来越先进复杂,操作系统 C/OS-II 是高效、 稳定、 可靠、 节能的系统, 广泛应用安防, 消费电子中。 而基于 Cortex-M3 架构下的 STM32 是一款性价比优越新型微处理器,将 C/OS-II移植到STM32 上能够发挥其高效的性能,从而投入社会生产,制造出很多有用又实惠的电子产 品,为我们的生活带来便利。 本文主要的研究内容是 C/OS-II 操作系统理论分析、移植方法、应用程序 设计及调试仿真实现。首先,对 C/OS-II 的理论分析,研究其实际应用及系统 结构;其次
3、,分析 STM32 硬件平台及 C/OS-II 的移植需求;最后,在 C/OS-II 上开发 LCD,LED,按键 KEY 等应用程序,并对多任务系统调试分析。主要研 究结论如下: (1) C/OS-II 操作系统主要分为任务管理、内存管理和时间管理三大部分, 其间通信是通过消息队列和消邮箱。 (2) C/OS-II 移植主要在 OS_CPU.H,OS_CPU_C.C,OS_CPU_A.ASM 三 个文件中,涉及到数据类型、堆栈、中断定义和任务切换等。 (3)应用程序设计优先级分配要合理,硬件平台初始化模块化处理。 关键词:关键词:嵌入式系统; C/OS-II;移植 2 Abstract Wi
4、th the progress of science and technology constantly, advanced industrial production to more complex, the operating system C/OS-II is efficient, stable, reliable, energy saving system, widely used in the security, and consumer electronics. And based on the STM32 architecture Cortex-M3 framework is a
5、 superior cost-effective new microprocessor, C/OS-II transplantation to STM32 can play its efficient performance, thus in social production and create a lot of useful and affordable electronic product, bring convenience to our lives. This article main research content is C/OS-II operating system the
6、ory analysis, method of transplantation, application design and debugging of the simulation implementation. First of all, the theoretical analysis of C/OS-II, research the actual application and system structure; Second, analysis of STM32 hardware platform and the demand C/OS-II transplantation. Finally, on the C/OS-II development of LCD, LED, button KEY applications, and analysis of multitasking system debugging. Main research conclusion is as follow