Go to previous topic
Go to next topic
Last Post 02 Feb 2005 08:11 AM by  mikee@logicpd.com
LH7A400 details - EEPROM
 5 Replies
Author Messages
snair
New Member
New Member
Posts:


--
27 Jan 2005 04:09 PM
    Could I please know:

    -What is the importance of the serial EEPROM and where it is located in the overall memory map?
    -If I write my own boot loader program, would I have to specifically change anything in regard with the EEPROM?
    -I have my own program which does some command operations like read and write to memory location in the SRAM. Now if I want to load my program after the BoLo has initialized all the settings, what would be the procedure to do so?


    Thanks.

    Regards,
    -Sajiv
    Anonymous
    Posts:


    --
    28 Jan 2005 10:48 AM
    Sajiv,

    Quote:
    -What is the importance of the serial EEPROM and where it is located in the overall memory map?


    Please download the "LH7A400-10 LoLo Addendum: Memory Map and Hardware Information" for this information. It can be downloaded at the following link:

    http://www.logicpd.com/downloads/64/70000085_Rev_D.pdf


    Quote:
    -If I write my own boot loader program, would I have to specifically change anything in regard with the EEPROM?


    Only if you want to be able to use the EEPROM for something. If you replace BoLo/LoLo with something else, you won't have much use for the EEPROM.

    Quote:
    -I have my own program which does some command operations like read and write to memory location in the SRAM. Now if I want to load my program after the BoLo has initialized all the settings, what would be the procedure to do so?


    Please download and refer to the 'load' , 'jump' and 'exec' commands in the "LogicLoader User’s Manual", a link to download is provided below:

    http://www.logicpd.com/downloads/106/70000016_Rev_I.pdf
    snair
    New Member
    New Member
    Posts:


    --
    28 Jan 2005 01:16 PM
    Hi Aaron,

    I was looking at the flowchart explaining the interaction between the BoLo/LoLo and the boot squence. In my program, would I have to go through the EEPROM?...The way I have my code structured is like this...

    The startip code(assembly level) finishes all the intialization, supposedly as the BoLo would, at the end of the code I point the PC to 'main' declaration of the program (my version of LoLo) which does some command operations. Do you think in this sequence I should be concerned about the EEPROM and what I need to get in there to get my version of BoLo and LoLo running properly...

    My output file will be loaded to 0x0.

    Thanks.

    -Sajiv
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    31 Jan 2005 03:07 PM
    snair,

    The EEPROM only impacts your code if you want it to. It is purely a storage device. BoLo/LoLo includes the capability to store a small script in there can be executed at startup. Since you are planning to replace BoLo/LoLo with your own program, the EEPROM won't do anything unless you specifically read/write something out-of/into there.

    I think you might be worried that the processor will automatically start executing code from the EEPROM. This is not the case. The processor will start executing code out of flash. Whatever code you program into flash is what will be executed.

    For all intents and purposes, you may remove the EEPROM from your board if your code isn't going to use it.

    Regards,
    --mikee
    snair
    New Member
    New Member
    Posts:


    --
    01 Feb 2005 05:46 PM
    Hi Mike,

    Thank you very much for the info...

    Is there a specific reason that your using a script in EEPROM while loading BoLo/LoLo?

    Thanks again,
    Sajiv
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    02 Feb 2005 08:11 AM
    snair,

    The short answer is that they allow customers to automate certain things at boot-time. Logic doesn't use them per se, our customers do. An example would be writing a boot script to automatically start loading an Operating System image from flash, or a Compact Flash card every time the board gets powered up.

    The long answer is that I think that you might need to review the LogicLoader User's Manual. There is an entire section in that document that discusses boot-scripts, what they do, how to write them, etc.

    Please give the manual another look and if you still have questions, post back and I'll do my best to answer.

    Regards,
    --mikee


    ---