没有合适的资源?快使用搜索试试~ 我知道了~
VxWorks 6.8 BSP编程向导
5星 · 超过95%的资源 需积分: 35 89 下载量 11 浏览量
2013-01-15
21:14:35
上传
评论 6
收藏 1.82MB PDF 举报
温馨提示
试读
214页
嵌入式行业领先的实时操作系统(RTOS)——Wind River VxWorks 6.8 BSP编程向导
资源推荐
资源详情
资源评论
VxWorks
BSP DEVELOPER'S GUIDE
6.8
®
VxWorks BSP Developer's Guide, 6.8
Copyright © 2009 Wind River Systems, Inc.
All rights reserved. No part of this publication may be reproduced or transmitted in any
form or by any means without the prior written permission of Wind River Systems, Inc.
Wind River, Tornado, and VxWorks are registered trademarks of Wind River Systems, Inc.
The Wind River logo is a trademark of Wind River Systems, Inc. Any third-party
trademarks referenced are the property of their respective owners. For further information
regarding Wind River trademarks, please see:
www.windriver.com/company/terms/trademark.html
This product may include software licensed to Wind River by third parties. Relevant
notices (if any) are provided in your product installation at the following location:
installDir/product_name/3rd_party_licensor_notice.pdf.
Wind River may refer to third-party documentation by listing publications or providing
links to third-party Web sites for informational purposes. Wind River accepts no
responsibility for the information provided in such third-party documentation.
Corporate Headquarters
Wind River
500 Wind River Way
Alameda, CA 94501-1153
U.S.A.
Toll free (
U.S.A.): 800-545-WIND
Telephone: 510-748-4100
Facsimile: 510-749-2010
For additional contact information, see the Wind River Web site:
www.windriver.com
For information on how to contact Customer Support, see:
www.windriver.com/support
VxWorks
BSP Developer's Guide
6.8
6 Nov 09
iii
Contents
1 Introduction ................................................................................................. 1
1.1 About This Document .................................................................................................... 1
1.2 The Board Support Package .......................................................................................... 2
1.3 The BSP Development Process ..................................................................................... 3
1.4 Terminology ..................................................................................................................... 3
2 Overview of a BSP ...................................................................................... 5
2.1 Introduction ...................................................................................................................... 5
2.2 Boot Sequence .................................................................................................................. 7
2.2.1 Sequence Overview .......................................................................................... 7
2.2.2 Boot Sequence Configurations ........................................................................ 9
2.2.3 Architecture Considerations ............................................................................ 12
2.2.4 Detailed Boot Sequence .................................................................................... 13
2.3 Components of a BSP ..................................................................................................... 17
2.3.1 Source and Include Files .................................................................................. 17
README ............................................................................................................ 19
Makefile .............................................................................................................. 19
config.h ............................................................................................................... 19
bspname.h .......................................................................................................... 19
sysALib.s ............................................................................................................ 20
romInit.s .............................................................................................................. 20
sysLib.c ............................................................................................................... 21
target.ref or target.nr ......................................................................................... 21
board.jpg ............................................................................................................. 21
sysDev.c .............................................................................................................. 22
configAll.h .......................................................................................................... 23
bootInit.c ............................................................................................................. 23
usrConfig.c ......................................................................................................... 23
2.3.2 Derived Files ...................................................................................................... 23
VxWorks
BSP Developer's Guide, 6.8
iv
2.3.3 Required Data Variables .................................................................................. 24
sysPhysMemDesc[ ] .......................................................................................... 24
sysPhysMemDescNumEnt .............................................................................. 26
sysBootLine ........................................................................................................ 26
sysExcMsg .......................................................................................................... 26
sysFlags ............................................................................................................... 26
hcfDeviceList[ ] .................................................................................................. 26
hcfDeviceNum ................................................................................................... 26
devUnitCfgData[ ] ............................................................................................. 27
2.3.4 Required Routines ............................................................................................. 27
sysBspRev( ) ....................................................................................................... 27
Timer Driver Routines ..................................................................................... 28
sysMemTop( ) .................................................................................................... 28
sysPhysMemTop( ) ............................................................................................ 29
sysModel( ) ......................................................................................................... 30
NVRAM Routines ............................................................................................. 30
Hardware Initialization Routines ................................................................... 30
sysSerialChanGet( ) ........................................................................................... 31
sysToMonitor( ) .................................................................................................. 31
2.3.5 Required Macros ............................................................................................... 32
2.3.6 Optional Routines ............................................................................................. 35
2.3.7 Hardware Considerations ................................................................................ 35
2.4 The Development Environment ................................................................................... 36
2.4.1 BSP Debugging Methods ................................................................................. 37
Primitive Tools .................................................................................................. 37
Native Debug ROMs ........................................................................................ 37
ROM Emulator ................................................................................................. 37
On-Chip Debugging (OCD) Devices .............................................................. 38
Logic Analyzer ................................................................................................... 38
In-Circuit Emulator ........................................................................................... 39
2.4.2 WDB Debugging Interface .............................................................................. 39
2.4.3 Workbench Libraries and Tools ....................................................................... 40
2.4.4 Compiler and Tool Choice .............................................................................. 40
2.4.5 Download Path ................................................................................................. 41
2.5 Common Problems ......................................................................................................... 42
2.5.1 Failing to Include LOCAL_MEM_LOCAL_ADRS ....................................... 42
2.5.2 Providing Too Much Device Initialization in romInit.s .............................. 42
2.5.3 Providing Insufficient Initialization in sysALib.s ......................................... 42
2.5.4 Locating Modified Drivers in the Wrong Directory ..................................... 43
2.5.5 Including Confusing Configuration Options ............................................... 43
2.5.6 Using Non-Maskable Interrupts .................................................................... 44
Contents
v
3 Porting a BSP to Custom Hardware .......................................................... 45
3.1 Introduction ...................................................................................................................... 45
3.2 Getting a Default Kernel Running ............................................................................. 46
3.2.1 Initializing the Board ........................................................................................ 46
3.2.2 Initializing Memory ......................................................................................... 46
3.2.3 Using Debug Routines in the Initialization Code ........................................ 47
3.2.4 VxBus Initialization Sequence ........................................................................ 49
3.2.5 Debugging the Initialization Code ................................................................. 50
Initializing ROM-Based Image Types ............................................................ 50
Creating Additional Diagnostic Routines .................................................... 51
Copying Additional Code From the Reference BSP .................................... 52
Initializing RAM-Based Image Types ............................................................ 53
Initializing All Image Types ........................................................................... 53
3.2.6 Starting the WDB Agent Before the Kernel .................................................. 55
3.2.7 Building and Downloading VxWorks ........................................................... 56
3.2.8 Interrupt Controllers ........................................................................................ 57
3.2.9 DMA ................................................................................................................... 57
3.2.10 Minimum Required Drivers ............................................................................ 57
3.2.11 Serial Drivers .................................................................................................... 58
3.2.12 VxBus Initialization Routines ......................................................................... 59
3.3 Finalizing Your BSP ....................................................................................................... 60
3.3.1 Removing Development-Related Changes ................................................... 60
3.3.2 Creating Workbench Projects .......................................................................... 61
3.3.3 Adding Other Timers ....................................................................................... 61
3.3.4 Enabling NVRAM ............................................................................................ 61
3.3.5 Enabling Cache and MMU Devices ................................................................ 62
3.3.6 Testing Boot ROMs ........................................................................................... 64
3.3.7 Providing Bus Interface Support ..................................................................... 65
VxBus Support .................................................................................................. 65
Legacy Bus Interface Support ......................................................................... 65
PCI Bus Interface Support ............................................................................... 65
PCI Configuration Example ........................................................................... 74
PCI Show Routines .......................................................................................... 79
VME Bus Interface Support ............................................................................ 81
USB Bus Interface Support .............................................................................. 81
3.3.8 Updating BSP-Specific Documentation ........................................................ 81
3.3.9 Providing Additional Optional Device Support ......................................... 82
Adding VxBus Devices .................................................................................... 82
Adding Ethernet Devices ................................................................................ 83
Adding Other Devices ...................................................................................... 84
剩余213页未读,继续阅读
guojianfei
- 粉丝: 0
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
- 基于同态加密技术的匿名电子投票系统源码.zip
- Pyqt5项目框架-PyQt项目开发实践
- 基于C通过MQTT的智能农业大棚管理系统(本科毕业设计)
- python+CNN的网络入侵检测算法源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页