
Contents
v
On-Chip Debugging (OCD) Devices ..................................................... 45
Logic Analyzer .......................................................................................... 46
In-Circuit Emulator .................................................................................. 46
2.4.2 WDB Debugging Interface ..................................................................... 47
2.4.3 The Wind River IDE ................................................................................. 48
2.4.4 Compiler and Tool Choice ..................................................................... 48
2.4.5 Download Path ........................................................................................ 49
2.5 Avoiding Common Problems .............................................................................. 50
3 Porting a BSP to Custom Hardware ................................................... 55
3.1 Introduction ............................................................................................................. 55
3.2 Getting a Minimal Kernel Running .................................................................. 56
3.2.1 Initializing the Board ............................................................................... 56
3.2.2 Initializing Memory ................................................................................ 57
3.2.3 Using Debug Routines in the Initialization Code ............................... 57
3.2.4 Debugging the Initialization Code ........................................................ 60
Initializing ROM-Based Image Types ................................................... 61
Creating Additional Diagnostic Routines ........................................... 62
Copying Additional Code From the Reference BSP ........................... 64
Initializing RAM-Based Image Types ................................................... 64
Initializing All Image Types ................................................................... 65
3.2.5 Starting the WDB Agent Before the Kernel ......................................... 66
3.2.6 Building and Downloading VxWorks .................................................. 69
3.2.7 Interrupt Controllers ............................................................................... 70
3.2.8 ISR Guidelines ......................................................................................... 70
3.2.9 DMA .......................................................................................................... 70
3.2.10 Minimum Required Drivers ................................................................... 70
3.2.11 Serial Drivers ........................................................................................... 71
3.3 Finalizing Your BSP .............................................................................................. 72
3.3.1 Cleanup ...................................................................................................... 72
Comentarios a estos manuales