vii
Chapter 3: NET+OS BSP for ARM9 ................................................. 41
Overview ................................................................................. 42
Supported platforms ................................................................... 42
Initialization ............................................................................. 42
Initializing hardware ............................................................ 42
Initialization sequence.......................................................... 43
C library startup ................................................................. 44
NABoardInit ....................................................................... 44
ROM bootloader ......................................................................... 44
BSP tree structure ...................................................................... 45
Top-level directory .............................................................. 45
bootloader subdirectory ........................................................ 45
devices directory ................................................................ 46
platforms directory.............................................................. 47
Customizing the BSP for application hardware .................................... 47
Follow the reference design ................................................... 48
Verify the features your hardware supports................................. 48
Task 1: Purchase and assign Ethernet MAC addresses...................... 49
Task 2: Create a new platform subdirectory ................................ 49
Task 3: Building and modifying the BSP Makefile ........................... 50
Task 4: Modify the linker scripts .............................................. 51
Task 5: Modify BSP configuration files........................................ 53
Task 6: Modify the new BSP to start up the required drivers ............. 58
Task 7: Modify the format of BSP arguments in NVRAM ................... 61
Task 8: Modify error and exception handlers................................ 62
Task 9: Verify the debugger initialization files ............................. 63
Task 10: Debug the initialization code ....................................... 65
Task 11: Modify the startup dialog............................................ 69
Task 12: Modify the POST ...................................................... 70
Task 13: Modify the ACE ........................................................ 70
Other BSP customizing ................................................................. 71
BSP_NVRAM_DRIVER ............................................................. 71
TCP/IP stack ...................................................................... 71
File system........................................................................ 73