Partager via


Config.bib Checklist (Windows Embedded CE 6.0)

1/6/2010

The following is a checklist of items that must appear in Config.bib to produce a multiple-XIP image:

  • Define the XIP.
    All XIP regions must be in the order in which they appear in Config.bib.

  • Establish the XIP chain by adding the following lines to the MEMORY section from the sample Config.bib. The reserve section for the chain file must be the first region in the image.

    #define XIPLOC_PHYSICAL A02C0000; Location of the chain
    RESERVE $(XIPLOC_PHYSICAL) 00002000; CHAIN
    nk.exe: pdwXIPLoc 00000000 $(XIPLOC_PHYSICAL) FIXUPVAR
    
  • Set the following lines in Config.bib in the CONFIG section:

    XIPSCHAIN = $(XIPLOC_PHYSICAL)
    
  • Define the required fixup variables in the MEMORY section: nk.exe:pdwXIPLoc.
    This is defined in the sample Config.bib.

  • Reserve a region of RAM for that code, and set the fixup variable to point to it if you are using a RAM region for the flash code as the sample OEM adaptation layer (OAL) does:

    FLASHFN 8c082000 00001000 RESERVED
    dwFshFnRsvd 00000000 8c082000 FIXUPVAR
    

    Set the dwFshFnRsvd variable to the same address as the region reserved for the chain file. In the code, add the value of ROM_CHAIN_OFFSET to the variable to dereference the chain location. This should look as follows:

    dwFshFnRsvd += ROM_CHAIN_OFFSET
    

If you begin with the sample Config.bib, most of the programming is done for you.

See Also

Concepts

Building an Image with Multiple XIP Regions