Partager via


Creating a File for the Boot Loader StartUp Function (Windows Embedded CE 6.0)

1/5/2010

In the process of developing your boot loader, you must create a file called Startup.s. Startup.s will contain your implementation of the boot loader StartUp function.

To create a file for the StartUp function

  1. Navigate to %_WINCEROOT%\Platform\MyPlatform\Src\Bootloader\Eboot.

  2. Create a file called Startup.s.

    Because of its low-level nature, the new Startup.s file must contain code written in assembly language. The following code example is specific to the ARM hardware platform. Your code may vary. For more information about the hardware platform used for this example, see Boot Loader Design.

    OPT   2             ; Disable listing 
    
    INCLUDE kxarm.h     ; This defines the WinCE/ARM Calling Sequence Specification
    
    OPT   1             ; Reenable listing
    OPT   128           ; Disable listing of macro expansions
    
    STARTUPTEXT
    LEAF_ENTRY StartUp 
     nop               ; *** This routine will be filled in later ***
    END
    

See Also

Tasks

How to Develop a Boot Loader

Other Resources

ARM Family Processors
ARM Assembler