DSPRelated.com
Forums

Boot form Flash to SDRAM with VDK

Started by Hemant Sadhwani February 22, 2005
Hi,
I'm struggling to boot from FLASH and load the program code into SDRAM and
data code into L1 data RAM and configure L1 instruction memory as a cache. I
do have an example which is go it from the Analog Devices site i.e.
"application Code with Application Init" But the example only mentions of
assembly and without VDK. But I'm working on example provided by Analog
Device i.e." VDK_blink_with_two_threads_messages" which is executing from the
L1 Instruction memory and I'm trying to boot it into SDRAM and execute it
from there only. But I'm unable to do so, can anybody help me get out of
situation or please give me link or some reference .LDF file so that I could
get out of dead lock.
Hope somebody would do needful to that.
Regards,

Hemant sadhwani


-----------------
Disclaimer
-----------------

"This message(including attachment if any)is confidential and may be privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission."

-----------------



On Tue, 22 Feb 2005, Hemant Sadhwani wrote:

> I'm struggling to boot from FLASH and load the program code into SDRAM and
> data code into L1 data RAM and configure L1 instruction memory as a cache. I
> do have an example which is go it from the Analog Devices site i.e.
> "application Code with Application Init" But the example only mentions of
> assembly and without VDK. But I'm working on example provided by Analog
> Device i.e." VDK_blink_with_two_threads_messages" which is executing from the
> L1 Instruction memory and I'm trying to boot it into SDRAM and execute it
> from there only. But I'm unable to do so, can anybody help me get out of
> situation or please give me link or some reference .LDF file so that I could
> get out of dead lock.

I assume this is with the Blackfin? You need to read up on the linker
file and look for the keyword "overlay". What you want to do is have the
linker put in all the addresses for the run space, and have the loader
burn everything into flash space. You also need a boot loader that will
copy from flash to the correct ram address, then jump to it. ADI supplies
those, but it is easy enough to write your own.

Patience, persistence, truth,
Dr. mike