RAM 6.0 BUX II Series Uživatelská příručka Strana 72

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 189
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 71
VxWorks
BSP Developer’s Guide, 6.0
64
Copying Additional Code From the Reference BSP
If you followed the guidelines provided in earlier sections, your initial
development for processor and memory initialization consisted of a number of
files containing empty stub routines. At this point, you can copy relevant material
from the reference BSP to your BSP directory.
It is also common practice for developers to copy usrConfig.c to the BSP directory
and modify Makefile with the
USRCONFIG= line such that a local version of the
usrConfig.c file is used. In this practice, the contents of the usrInit( ) and
usrRoot( ) routines are commented out using #if 0 /* BSP development */ and
#endif /* BSP development */. You may also wish to add a call to a debugging
output routine (such as kprintf( )) at the end of usrInit( ) (before the call to
kernelInit( )) and at the beginning of usrRoot( ).
When BSP development reaches the stage where usrInit( ) is being executed,
remove the commenting from short sections to verify that the system continues to
work with these sections in place. This is done by moving the
#if 0 /* BSP development */ line to below the sections that should now be
included. At the end of usrInit( ), a call to kernelInit( ) is made. Once you reach
the point at which all the usrInit( ) code is included and the call to kernelInit( ) is
occurring, the system should execute the diagnostic message that you had placed
at the beginning of usrRoot( ). If it does not execute the message, there is a problem
with the BSP. Once usrRoot( ) is successfully called, start removing the
commenting from sections of usrRoot( ).
Initializing RAM-Based Image Types
This section describes the initialization routine for the RAM-based VxWorks
image.
sysALib.s: sysInit( )
The VxWorks entry point is sysInit( ). sysInit( ) performs the minimal setup
necessary to transfer control to usrInit( ) (in usrConfig.c). Most hardware and
device initialization is performed later in the initialization sequence by
sysHwInit( ) in sysLib.c.
NOTE: If the board fails to boot when a system module is initialized, it is almost
always caused by a failure in the BSP.
Zobrazit stránku 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 188 189

Komentáře k této Příručce

Žádné komentáře