Skip navigation

This Question is Answered (go to answer)

1,750 Views 5 Replies Last post: Jan 21, 2010 4:19 AM by jeyanthi.jegadeesan RSS
Afinko Regular Contributor 60 posts since
Sep 29, 2009
Currently Being Moderated

Nov 21, 2009 10:32 AM

How to boot program memory to the SDRAM

I came to the state, when the internal program memory area in ADSP-21371 is small enough for my program. It is approx. 25 % of the internal RAM, the next 75 % are for data and can not be reduced.

 

Therefore I put several programs parts to the SDRAM and they are executed from SDRAM. It is very effective, because the program, that is intensive for speed is in internal RAM and the rest of the program (mostly for configuration etc. ) is executed from SDRAM. This works great, because I am working with EZ-KIT Lite and the program is putted to the SDRAM by Visual DSP by "Rebuild All".

 

The question is:
How to add program to the SDRAM in "stand alone" hardware, where the DSP is booted from SPI FLASH?
I know that Visual DSP is able to create the "ROM" file, that can be programmed to the FLASH, and then the DSP is booted from that FLASH.
If I will use a big enough FLASH, it is possible to create the "ROM" file by Visual DSP, that will include the internal program and data memory as well as SDRAM program and memory parts?

jeyanthi.jegadeesan Analog Employee 139 posts since
Mar 24, 2009
Currently Being Moderated
1. Nov 23, 2009 4:33 AM in response to: Afinko
Re: How to boot program memory to the SDRAM

Hi Afinko,

          When the application is tested using emulator, the code is loaded into the external memory using emulator. The external memory should be initialized before loading the code and this is taken care by .xml settings. When the application is running standalone, the boot kernel loads the application. The boot kernel consists of 256 instructions. These 256 instructions are loaded into the internal memory initially and this code loads the complete application and overwrites it self. In order to load the application in the external memory, the boot kernel should initialize the SDRAM. Please refer the below link for the boot kernel source code:

C:\Program Files\Analog Devices\VisualDSP 5.0\213xx\ldr\375_spi

 

You can modify the User_init section as per the PLL speed and the SDRAM used in your application. The boot kernel will be automatically added to the application code when the loader file is generated. The boot kernel uses the tags generated by the loader utility and copies the program/data to internal memory/external memory accordingly.

 

Please refer the loader manual for more details on how the loader utility works.

 

Best Regards,

Jeyanthi

jeyanthi.jegadeesan Analog Employee 139 posts since
Mar 24, 2009
Currently Being Moderated
3. Jan 20, 2010 10:04 AM in response to: Afinko
Re: How to boot program memory to the SDRAM

Hi Afi,

     Thanks for pointing this out. We are already working on this item. I will work with the tools team to get this on the next VDSP++ update.

 

Best Regards,

Jeyanthi

jeyanthi.jegadeesan Analog Employee 139 posts since
Mar 24, 2009
Currently Being Moderated
5. Jan 21, 2010 4:19 AM in response to: Afinko
Re: How to boot program memory to the SDRAM

Hi Afi,

     I have confirmed that the correction you have pointed out is also taken care. These modifications should be available with the next VDSP++ update.

 

Best Regards,

Jeyanthi

More Like This

  • Retrieving data ...

Bookmarked By (0)