Go to previous topic
Go to next topic
Last Post 20 Sep 2004 04:02 PM by  Anonymous
How to Change FLASH load address?
 5 Replies
Author Messages
joseph.fitzgerald@aflglobal.com
New Member
New Member
Posts:


--
20 Sep 2004 01:06 PM
    I am using the RELOCATE_FROM_FLASH feature. When this is defined, the code is "set" to 0x00100000 and burned into flash at that address.

    My question is do I go about changing this?
    I have the flash memory map figured out as:

    BOLO 0x00000000
    LOLO 0x00040000
    Start of rest 0x00080000

    There is a 1/2 meg hole here if the code is burned into flash at 0x00100000. Is there anyway to change this?

    Thanks

    Joe
    Anonymous
    Posts:


    --
    20 Sep 2004 01:31 PM
    jjfitzy,

    The settings that you're looking for are done within the file WINCE420\Platform\xxx\files\config.bib. Look in the Platform Builder help and it will explain to you the format of a bib file. Please be aware that there is the potential for wiping out your bootloader and other parts of flash in doing this.

    I would also recommend checking out a previous thread related to the config.bib.

    http://www.logicpd.com/su.../viewtopic.php?t=279

    Regards,
    joseph.fitzgerald@aflglobal.com
    New Member
    New Member
    Posts:


    --
    20 Sep 2004 01:53 PM
    Hi Aaron,

    Thanks for your reply. I am familiar with config.bib and also lha400_10_config.bib. If you would point me to the correct item to change it would be most helpful.

    Thanks,

    Joe
    Anonymous
    Posts:


    --
    20 Sep 2004 02:53 PM
    jjfitzy,

    I spoke a bit hasty and refered you to the wrong config file. You don't want to touch config.bib. Instead please look inside \WINCE420\PLATFORM\LoCE\inc\card_engine\xxx_config_bib.h
    and make changes there, the settings should be easy to modify.

    Regards,
    joseph.fitzgerald@aflglobal.com
    New Member
    New Member
    Posts:


    --
    20 Sep 2004 02:59 PM
    Aaron,

    Again, I am familiar with lha400_10_config_bib.h file. I do not see the place in it to change the FLASH load location for the RELOCATE_FROM_FLASH option. Would you please supply either a specific entry to change or an example.

    Thanks,

    Joe
    Anonymous
    Posts:


    --
    20 Sep 2004 04:02 PM
    Please read the comments pertaining to "XXX_BUILD_IMAGE_START" and "XXX_BUILD_ROMOFFSET."

    Basically, XXX_BUILD_IMAGE_START corresponds to the virtual address of the nk XIP region. This gets added to XXX_BUILD_ROMOFFSET to calculate the physical address of the beginning of the image. Note, the calculation is done in a 32-bit accumulator, so ignore any overflow.


    ---