嵌入式實(shí)時(shí)操作系統(tǒng)MQX應(yīng)用框架研究
本文選題:MQX + Kinetis ; 參考:《蘇州大學(xué)》2013年碩士論文
【摘要】:MQX是一款主要面向工業(yè)控制、汽車電子及消費(fèi)電子等領(lǐng)域?qū)崟r(shí)多任務(wù)應(yīng)用的嵌入式實(shí)時(shí)操作系統(tǒng)。2009年,,飛思卡爾公司半導(dǎo)體公司開始免費(fèi)開放MQX3.0.1版源代碼,同年,蘇州大學(xué)飛思卡爾嵌入式中心接受其委托,利用ColdFire微控制器為硬件平臺(tái)開始對(duì)MQX原理及應(yīng)用進(jìn)行初步研究。2010年以來,飛思卡爾陸續(xù)推出了面向工業(yè)領(lǐng)域ARM Cortex-M4內(nèi)核的Kinetis系列微控制器,該系列微控制器具有復(fù)雜性高、性能卓越、硬件資源豐富且對(duì)運(yùn)行操作系統(tǒng)軟件有良好支持等特點(diǎn),對(duì)MQX提供了更好的支持。同時(shí),MQX也不斷發(fā)展,目前已經(jīng)更新至4.0.0版。在此背景下,開展對(duì)MQX調(diào)度機(jī)制、組織框架及驅(qū)動(dòng)模型等問題的深入分析研究,對(duì)MQX的應(yīng)用與推廣具有重要意義。 本文以Kinetis K系列微控制器為硬件藍(lán)本,對(duì)MQX的應(yīng)用進(jìn)行研究。通過分析MQX源碼,剖析其基于優(yōu)先級(jí)可搶占的調(diào)度機(jī)制,揭示了MQX的調(diào)度實(shí)質(zhì)并給出清晰表述,為應(yīng)用及進(jìn)一步深入研究奠定了基礎(chǔ)。提出了應(yīng)用工程框架SD-MQX,該框架實(shí)現(xiàn)了使用MQX及無操作系統(tǒng)NOS應(yīng)用工程的統(tǒng)一,從而使前導(dǎo)啟動(dòng)過程、底層驅(qū)動(dòng)的一致性得到較好的滿足。同時(shí),該框架簡(jiǎn)化了從傳統(tǒng)開發(fā)模式向使用MQX進(jìn)行過渡的過程。提出了基于構(gòu)件的MQX設(shè)備分層驅(qū)動(dòng)模型,通過設(shè)計(jì)接口驅(qū)動(dòng)構(gòu)件,解決了MQX標(biāo)準(zhǔn)調(diào)用接口與底層驅(qū)動(dòng)構(gòu)件的對(duì)接問題,有效地實(shí)現(xiàn)有無操作系統(tǒng)情況的底層驅(qū)動(dòng)的統(tǒng)一;趯(duì)硬件抽象層的研究,提出了一種MQX跨平臺(tái)的簡(jiǎn)捷移植方法,并結(jié)合Cortex-M4處理器架構(gòu)的特點(diǎn)在K60N512微控制器上進(jìn)行了實(shí)現(xiàn)和性能測(cè)評(píng)。最后,設(shè)計(jì)了基于MQX的簡(jiǎn)易數(shù)碼相框系統(tǒng)作為應(yīng)用實(shí)例。 鑒于MQX在國(guó)內(nèi)的推廣為時(shí)尚短,相關(guān)研究較少,本文深入分析與研究了MQX的調(diào)度機(jī)制、組織框架、驅(qū)動(dòng)設(shè)計(jì)和系統(tǒng)移植等基本問題并給出了解決方案,有助于降低MQX的開發(fā)難度,縮短開發(fā)周期,提高軟件質(zhì)量,為MQX應(yīng)用開發(fā)提供范例。
[Abstract]:MQX is an embedded real-time operating system for real-time multitasking applications in industrial control, automotive electronics and consumer electronics. In 2009, Freescale Semiconductor began to open free MQX3.0.1 source code, the same year,The Freescale embedded Center of Suzhou University accepted the commission and began to study the principle and application of MQX using ColdFire microcontroller as the hardware platform.Freescale has successively introduced Kinetis series microcontrollers for industrial ARM Cortex-M4 kernel. The series microcontrollers have the characteristics of high complexity, excellent performance, abundant hardware resources and good support for operating system software, etc.Better support for MQX.At the same time, MQX is also evolving and has been updated to version 4.0.0.Under this background, it is of great significance for the application and popularization of MQX to carry out in-depth analysis and research on MQX scheduling mechanism, organization framework and driving model.In this paper, Kinetis K series microcontrollers are used as hardware blueprint to study the application of MQX.By analyzing the source code of MQX, the scheduling mechanism based on priority preemption is analyzed, and the essence of MQX scheduling is revealed and clearly described, which lays a foundation for application and further research.An application engineering framework SD-MQX is proposed, which realizes the unification of application engineering using MQX and NOS without operating system, so that the consistency of the bottom driver and the leading start process can be well satisfied.At the same time, the framework simplifies the transition from the traditional development model to the use of MQX.A component-based layered driver model for MQX devices is proposed. The interface driver component is designed to solve the problem of interfacing between the MQX standard calling interface and the underlying driver component, and the unification of the underlying driver with or without operating system is effectively realized.Based on the research of hardware abstraction layer, this paper presents a simple and convenient method of transplanting MQX across platforms, and implements and evaluates the performance of K60N512 microcontroller based on the characteristics of Cortex-M4 processor architecture.Finally, a simple digital photo frame system based on MQX is designed as an application example.In view of the short popularity of MQX in China and the lack of related research, this paper deeply analyzes and studies the basic problems of MQX scheduling mechanism, organization framework, driver design and system porting, and gives the solutions.It is helpful to reduce the difficulty of MQX development, shorten the development cycle, improve the software quality, and provide an example for MQX application development.
【學(xué)位授予單位】:蘇州大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP316.2;TP368.1
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 李盛,張揚(yáng);嵌入式通信設(shè)備驅(qū)動(dòng)程序設(shè)計(jì)標(biāo)準(zhǔn)化[J];電子科技大學(xué)學(xué)報(bào);2005年03期
2 何立民;嵌入式系統(tǒng)的定義與發(fā)展歷史[J];單片機(jī)與嵌入式系統(tǒng)應(yīng)用;2004年01期
3 楊芙清,梅宏,李克勤;軟件復(fù)用與軟件構(gòu)件技術(shù)[J];電子學(xué)報(bào);1999年02期
4 諶普江;龔光華;宮輝;邵貝貝;;μC/OS-Ⅲ為縮短中斷關(guān)閉時(shí)間作出的改進(jìn)[J];單片機(jī)與嵌入式系統(tǒng)應(yīng)用;2013年01期
5 高偉華,楊子軍;嵌入式操作系統(tǒng)的研究現(xiàn)狀及發(fā)展趨勢(shì)[J];黑龍江電力;2002年05期
6 方春春,張為;嵌入式系統(tǒng)——后PC機(jī)時(shí)代[J];航空計(jì)算技術(shù);2004年01期
7 楊芙清;;軟件復(fù)用及相關(guān)技術(shù)[J];計(jì)算機(jī)科學(xué);1999年05期
8 何先波,鐘樂海,蘆東昕;嵌入式操作系統(tǒng)封裝層的設(shè)計(jì)與實(shí)現(xiàn)[J];計(jì)算機(jī)應(yīng)用;2003年05期
9 魏振華,洪炳熔,喬永強(qiáng),蔡則蘇,彭俊杰;嵌入式實(shí)時(shí)操作系統(tǒng)Nucleus中線程控制部件的實(shí)現(xiàn)方法[J];計(jì)算機(jī)應(yīng)用研究;2003年04期
10 王磊;盧顯良;陳明燕;張順生;張偉;;雷達(dá)系統(tǒng)仿真中基于消息驅(qū)動(dòng)的通信服務(wù)模型之研究[J];計(jì)算機(jī)應(yīng)用研究;2011年10期
相關(guān)碩士學(xué)位論文 前5條
1 王超藝;基于Cortex-M4內(nèi)核的Kinetis微控制器的應(yīng)用研究[D];蘇州大學(xué);2011年
2 程玉娟;嵌入式實(shí)時(shí)操作系統(tǒng)MQX的內(nèi)核分析及應(yīng)用研究[D];蘇州大學(xué);2011年
3 雷紅衛(wèi);嵌入式操作系統(tǒng)移植技術(shù)研究與實(shí)踐[D];電子科技大學(xué);2004年
4 邱yN;嵌入式實(shí)時(shí)操作系統(tǒng)RT-Thread的設(shè)計(jì)與實(shí)現(xiàn)[D];電子科技大學(xué);2007年
5 薦紅梅;基于硬件構(gòu)件的嵌入式底層軟件開發(fā)方法研究及其應(yīng)用[D];蘇州大學(xué);2008年
本文編號(hào):1758381
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1758381.html