【正文】
本科畢業(yè)論文(設計) 論文題目 : 基于 STM32 的嵌入式操作系統(tǒng) 程序設計及實 現(xiàn) 姓 名 : 郝宇 學 號 : 093001020204 班 級 : 01 班 年 級 : 2020 級 專 業(yè) : 電子信息工程 學 院 : 信息工程 學院 指導教師 : 丁光哲 講師 完成時間 : 2020 年 5 月 20 日 武昌工學院 畢業(yè)論文(設計)專用稿紙 作者聲明 本畢業(yè)論文(設計)是在導師的指導下由本人獨立撰寫完成的,沒有剽竊、抄襲、造假等違反道德、學術(shù)規(guī)范和其他侵權(quán)行為。對本 論文(設計)的研究做出重要貢獻的個人和集體,均已在文中以明確方式標明。因 本畢業(yè)論文(設計)引起的法律結(jié)果完全由本人承擔。 畢業(yè)論文(設計)成果歸武昌工學院所有。 特此聲明 作者專業(yè) : 電子信息工程 作者學號 : 093001020204 作者簽名 : 年 月 日 武昌工學院 畢業(yè)論文(設計)專用稿紙 基于 STM32 的嵌入式操作系統(tǒng) 程序設計及實現(xiàn) 郝宇 The Design and Implementation of embedded operating system program based on STM32 Hao, Yu 2020 年 5 月 20 日 武昌工學院畢業(yè)論文(設計)專用稿紙 1 摘 要 隨著科學技術(shù)不斷的進步, 工業(yè)生產(chǎn)越來 越 先進復雜,操作系統(tǒng) 181。C/OSII是 高效、穩(wěn)定、可靠 、節(jié)能 的系統(tǒng) , 廣泛應用安防,消費電子中。 而 基于 CortexM3架構(gòu)下的 STM32 是一款性價比優(yōu)越新型微處理器 , 將 181。C/OSII 移植到 STM32上能夠發(fā)揮其高效的性能,從而投入社會生產(chǎn), 制造出很多有用又實惠的電子產(chǎn)品,為我們的生活帶來便利。 本文主要的研究內(nèi)容是 181。C/OSII 操作系統(tǒng)理論分析、移植方法 、 應用程序設計及調(diào)試仿 真實現(xiàn) 。首先,對 181。C/OSII 的 理論分析 ,研究其實際應用 及系統(tǒng)結(jié)構(gòu);其次,分析 STM32 硬件平臺及 181。C/OSII 的移植需求 ;最后, 在 181。C/OSII上開發(fā) LCD, LED,按鍵 KEY 等應用程序 , 并對多任務系統(tǒng)調(diào)試分析 。主要研究結(jié)論如下: ( 1) 181。C/OSII 操作系統(tǒng)主要分為 任務管理、 內(nèi)存管理和時間管理三大部分,其間通信是通過消息隊列和消郵箱 。 ( 2) 181。C/OSII 移植主要在 , , 三個文件中,涉及到數(shù)據(jù)類型、堆棧、中斷定義和任務切換等。 ( 3) 應 用程序設計優(yōu)先級分配要合理,硬件平臺初始化模塊化處理。 關(guān)鍵詞: 嵌入式系統(tǒng); 181。C/OSII; 移植 武昌工學院畢業(yè)論文(設計)專用稿紙 2 Abstract With the progress of science and technology constantly, advanced industrial production to more plex, the operating system 181。C/OSII is efficient, stable, reliable, energy saving system, widely used in the security, and consumer electronics. And based on the STM32 architecture CortexM3 framework is a superior costeffective new microprocessor, 181。C/OSII 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 181。C/OSII operating system theory analysis, method of transplantation, application design and debugging of the simulation implementation. First of all, the theoretical analysis of 181。C/OSII, research the actual application and system structure。 Second, analysis of STM32 hardware platform and the demand 181。C/OSII transplantation. Finally, on the 181。C/OSII development of LCD, LED, button KEY applications, and analysis of multitasking system debugging. Main research conclusion is as follows: (1) 181。C/OSII operating system consists of three major task management, memory management and time management, in which munication is through the message queue and . (2) 181。C/OSII transplantation mainly in , file, , three involves the data type definition and task switching etc, stack, interrupt. (3)The application design to the allocation of priorities, initialize the modular processing hardware platform. Key words: embedded system。 181。C/OSII。 transplant 武昌工學院畢業(yè)論文(設計)專用稿紙 1 目 錄 1 概 述 ...............................................................................................1 研究的目的及意義 1 國內(nèi)外研究狀況綜述 1 研究的主要內(nèi)容 2 2 181。C/OSII 的理論介紹 .......................................................................3 181。C/OSII 各模塊的基本功能 3 STM32 上移植方法 7 3 LCD 屏程序設計及調(diào)試 ...................................................................12 工具概述 12 硬件結(jié)構(gòu) 13 C 程序設計 15 調(diào)試 16 結(jié) 語 ...................................................................................................18 主要參考文獻 ........................................................................................19 附 錄 ...................................................................................................20 附錄 1