<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css">
<link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css">
<link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/625eace62cc14f66361b64e3/raw.css">
<script src="https://static.pudn.com/base/js/compatibility.min.js"></script>
<script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script>
<script>
try{
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});
}catch(e){}
</script>
<title></title>
</head>
<body>
<div id="sidebar" style="display: none">
<div id="outline">
</div>
</div>
<div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625eace62cc14f66361b64e3/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc1 sc1 ls1">UML软件工程组</span></div><div class="t m0 x1 h2 y2 ff1 fs0 fc1 sc1 ls2 ws0">织<span class="fc0 sc2"> </span></div><div class="t m0 x2 h3 y3 ff2 fs1 fc2 sc2 ls2 ws0"> </div><div class="t m0 x2 h3 y4 ff2 fs1 fc2 sc2 ls2 ws0"> </div><div class="t m0 x3 h4 y5 ff2 fs2 fc2 sc2 ls2 ws0">火龙果软件工程技术中心󴖦󴖦</div><div class="t m0 x4 h3 y6 ff2 fs1 fc2 sc2 ls2 ws0">󴖦</div><div class="t m0 x5 h4 y7 ff2 fs2 fc2 sc2 ls2 ws0">更多技术资源 文章,讲座 ,培训,咨询 请访问 www.uml.org.cn </div><div class="t m0 x6 h4 y8 ff2 fs2 fc2 sc2 ls2 ws0">󴖦</div><div class="t m0 x7 h5 y9 ff2 fs3 fc3 sc3 ls3 ws0">嵌入式实时操作系统VxWorks入门 </div><div class="t m0 x8 h3 ya ff2 fs1 fc2 sc2 ls2 ws0">󴖦</div><div class="t m0 x9 h4 yb ff2 fs2 fc4 sc2 ls2 ws0">作者: 宋宝华 <span class="_"> </span> <span class="_"> </span>出处: 天极开发 </div><div class="t m0 x8 h3 yc ff2 fs1 fc2 sc2 ls2 ws0">󴖦</div><div class="t m0 xa h4 yd ff2 fs2 fc2 sc4 ls2 ws0">嵌入式实时操作系统VxWorks入门――开发环境构建<span class="sc2"> </span></div><div class="t m0 xa h4 ye ff2 fs2 fc2 sc2 ls2 ws0">VxWorks操作系统是美国WindRiver公司于1983年设计开发的一种嵌入式实时操作系统(RTOS),它以其良好的可靠性和卓越</div><div class="t m0 xb h4 yf ff2 fs2 fc2 sc2 ls2 ws0">的实时性被广泛地应用在通信、军事、航空、航天等高精尖技术及实时性要求极高的领域中,如卫星通讯、军事演习、弹道</div><div class="t m0 xb h4 y10 ff2 fs2 fc2 sc2 ls2 ws0">制导、飞机导航等。在美国的 F-16、FA-18 战斗机、B-2隐形轰炸机和爱国者导弹上,甚至连1997年4月在火星表面登陆的</div><div class="t m0 xb h4 y11 ff2 fs2 fc2 sc2 ls2 ws0">火星探测器上也使用到了VxWorks。VxWorks原先对中国区禁止销售,自解禁以来,在我们的军事、通信、工业控制等领域得</div><div class="t m0 xb h4 y12 ff2 fs2 fc2 sc2 ls2 ws0">到了非常广泛的应用。 </div><div class="t m0 xa h4 y13 ff2 fs2 fc2 sc2 ls2 ws0">VxWorks的实时性体现在能于限定的时间内执行完所规定的功能,并能在限定的时间内对外部的异步事件作出响应。因</div><div class="t m0 xb h4 y14 ff2 fs2 fc2 sc2 ls2 ws0">此,实时性系统主要应用于过程控制、数据采集、通信、多媒体信息处理等对时间敏感的场合。本文将对这个操作系统进行</div><div class="t m0 xb h4 y15 ff2 fs2 fc2 sc2 ls2 ws0">一个入门级的、全面的介绍。为力求展示其全貌,全文共分五章: </div><div class="t m0 xa h4 y16 ff2 fs2 fc2 sc2 ls2 ws0">(1)搭建VxWorks嵌入式开发环境; </div><div class="t m0 xa h4 y17 ff2 fs2 fc2 sc2 ls2 ws0">(2)简要介绍VxWorks的基本组成,内核的基本结构; </div><div class="t m0 xa h4 y18 ff2 fs2 fc2 sc2 ls2 ws0">(3)概述VxWorks板级支持包(BSP)的概念及VxWorks的启动过程; </div><div class="t m0 xa h4 y19 ff2 fs2 fc2 sc2 ls2 ws0">(4)介绍VxWorks设备驱动的架构及编写方法; </div><div class="t m0 xa h4 y1a ff2 fs2 fc2 sc2 ls2 ws0">(5)指明VxWorks应用开发的思路,任务调度及任务同步、中断与任务的同步机制。 </div><div class="t m0 xa h4 y1b ff2 fs2 fc2 sc2 ls2 ws0">以上各章中将贯穿着许多实例,由于本文定位于入门级教程,所以文中的实例都将十分简单。下面我们进入第一章内容的</div><div class="t m0 xb h4 y1c ff2 fs2 fc2 sc2 ls2 ws0">讲解。 </div><div class="t m0 xa h4 y1d ff2 fs2 fc2 sc2 ls2 ws0">如图1,嵌入式系统的调试方法一般为通过PC(宿主机)上的集成开发环境交叉编译针对特定电路板(目标机)的程序,然后</div><div class="t m0 xb h4 y1e ff2 fs2 fc2 sc2 ls2 ws0">将程序通过目标板的JTAG、串口或网口等途径下载到目标板上运行。因此,为了构造一个嵌入式系统的学习环境,拥有一块</div><div class="t m0 xb h4 y1f ff2 fs2 fc2 sc2 ls2 ws0">包含CPU、存储器及I/O电路(构造计算机系统)的目标电路板往往是必要的。虽然许多集成开发环境附带模拟软件,但仅限于</div><div class="t m0 xb h4 y20 ff2 fs2 fc2 sc2 ls2 ws0">指令集的模拟,均无法模拟物理的目标机硬件平台,因而在其上只能进行应用程序的象征性模拟开发。但是,并非所有人都</div><div class="t m0 xb h4 y21 ff2 fs2 fc2 sc2 ls2 ws0">能拥有一块物理的电路板。在这种情况下,我们如何构造一个模拟的开发环境,其学习效果就如同拥有完全真实的电路板一</div><div class="t m0 xb h4 y22 ff2 fs2 fc2 sc2 ls2 ws0">样呢?本文试图解答此问题,主体内容包括四个方面: </div><div class="t m0 xa h4 y23 ff2 fs2 fc2 sc2 ls2 ws0">(1) 利用VMware等软件模拟真实的目标机; </div><div class="t m0 xa h4 y24 ff2 fs2 fc2 sc2 ls2 ws0">(2) 构建VMware虚拟PC上VxWorks BSP,建立Bootrom和OS映像; </div><div class="t m0 xa h4 y25 ff2 fs2 fc2 sc2 ls2 ws0">(3) 修改Tornado相关设置,连接宿主机与目标机,建立调试通道; </div><div class="t m0 xa h4 y26 ff2 fs2 fc2 sc2 ls2 ws0">(4) 写一个简单的应用程序并下载到目标系统运行。 </div><div class="t m0 xa h4 y27 ff2 fs2 fc2 sc2 ls4 ws0"> </div><div class="t m0 xb h4 y28 ff2 fs2 fc2 sc2 ls2 ws0"> <span class="_"> </span><span class="sc4">图1 嵌入式系统的调试</span> </div><div class="t m0 xa h4 y29 ff2 fs2 fc2 sc2 ls2 ws0">本章工作的最终目标为: </div><div class="t m0 xa h4 y2a ff2 fs2 fc2 sc2 ls2 ws0">(1)VxWorks在VMware启动成功并顺利运行,如图2; </div><div class="t m0 xc h5 y2b ff2 fs3 fc2 sc2 ls2 ws0">页码,1/9<span class="_ _0"></span><span class="ls5">嵌入式实时操作系统VxWorks入门-UML软件工程组织-火龙果软件</span></div><div class="t m0 xd h5 y2c ff2 fs3 fc2 sc2 ls2 ws0">2009-2-1<span class="_ _0"></span><span class="ls6">http://www.uml.org.cn/embeded/200702123.asp</span></div></div><div class="pi" data-data='{"ctm":[1.139379,0.000000,0.000000,1.139379,0.000000,0.000000]}'></div></div>
</body>
</html>