Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext 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
Sort:
You are not authorized to post a reply.
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
    You are not authorized to post a reply.