Freigeben über


Updating Config.bib with a New RAM Mapping (Windows CE 5.0)

Send Feedback

If you have updated the OEMAddressTable definition with a new RAM mapping, you must update the Config.bib file for your run-time image. For more information about Config.bib, see Binary Image Builder File.

To update the Config.bib file with a new RAM mapping

  1. In the Workspace window, on the ParameterView tab, expand the _WINCEROOT node.

  2. Expand the _TGTPLAT node, which is the string representing the BSP you chose in the New Platform Wizard.

  3. Expand the Hardware Specific Files node.

  4. Double-click the Config.bib file to open it for editing within Platform Builder.

  5. Find the RAM line to edit in Config.bib.

    You do not need to edit the RAMIMAGE line because AUTOSIZE adjusts the boundary between RAMIMAGE and RAM if your run-time image (Nk.bin) is too large for the amount specified by RAMIMAGE.

    If you did not set IMGRAM16, IMGRAM32, or IMGRAM64, the following code example from Config.bib shows the RAM setting to edit

    IF IMGRAM16 !
    IF IMGRAM32 !
    IF IMGRAM64 !
      NK   80220000  009E0000  RAMIMAGE ; Reserves 9.875 MB for nk.bin
      RAM  80C00000  01000000  RAM      ; Reserves 16 MB for RAM
    ENDIF
    ENDIF
    ENDIF
    

    - or -

    If you set IMGRAM16, the following code example from Config.bib shows the RAM setting to edit.

    IF IMGRAM16
      NK   80220000  009E0000  RAMIMAGE
      RAM  80C00000  00400000  RAM
    ENDIF
    

    - or -

    If you set IMGRAM32, the following code example from Config.bib shows the RAM setting to edit.

    IF IMGRAM32
      NK   80220000  009E0000  RAMIMAGE
      RAM  80C00000  01400000  RAM
    ENDIF
    

    - or -

    If you set IMGRAM64, the following code example from Config.bib shows the RAM setting to edit.

    IF IMGRAM64
      NK   80220000  009E0000  RAMIMAGE
      RAM  80C00000  03400000  RAM
    ENDIF
    
  6. Copy the line containing the RAM setting you will edit, and paste the line directly above or below the line you copied.

  7. Place the ';' delimiter at the beginning of the original line of code.

  8. For the line of code you pasted, edit the RAM entry to take advantage of the new RAM mapping.

    The RAM size you choose must be 4 KB aligned.

    The following code example shows the updated default RAM setting in the Config.bib file, which takes advantage of the new RAM mapping. If you set one of the IMGRAM16, IMGRAM32, or IMGRAM64 environment variables, update the appropriate section of the Config.bib file.

    IF IMGRAM16 !
    IF IMGRAM32 !
    IF IMGRAM64 !
      NK   80220000  009E0000  RAMIMAGE ; Reserves 9.875 MB for nk.bin
      RAM  80C00000  07400000  RAM      ; Reserves 116 MB for RAM
    ENDIF
    ENDIF
    ENDIF
    
  9. Save the Config.bib file to save your new RAM mapping.

See Also

How-to Topics | AUTOSIZE | Binary Image Builder File

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.