Go to previous topic
Go to next topic
Last Post 04 Nov 2005 08:52 AM by  kurtl@logicpd.com
Program saved in FLASH, but run in RAM
 1 Replies
Author Messages
newuser
New Member
New Member
Posts:22


--
04 Nov 2005 08:27 AM
    Hello,
    I would like my application stored in FLASH, but loaded to, and run from, RAM at boot-up. I know that “load” and “burn” can save the program into FLASH, but are there LOLO functions to unload the program from FLASH to RAM at boot-up time?

    newuser
    kurtl@logicpd.com
    New Member
    New Member
    Posts:


    --
    04 Nov 2005 08:52 AM
    Sure, create a .RAW RAM image. Use the 'load raw' command to load the image, then 'burn' to store it in FLASH at a known address. The image is now stored in FLASH and this step will only need to be repeated if the code must be changed.

    Then create a Lolo script to 'mem-copy' the program from the start address in FLASH, to the destination address in RAM. Finally use the 'exec' command with the RAM start address.

    You can store the script in the onboard EEPROM and have it auto-run every time on bootup. If there isn't enough space in the onboard EEPROM, you have a few options: you can use the Lolo FLASH config block, create a YAFFS partition and save the script as a file, or store the script on a compact flash card.

    -Kurt


    ---