SRAM (IS61LV5128AL) interface with ADSP21369
Hii All,
I am Sruthi. I am working on ADSP21369 and trying to interface ADSP with external memory. I am a fresher on this field. I tried to interface SRAM( Part no- IS61LV5128AL) with ADSP21369 and I was able to do that. But in the actual application data should go to SRAM automatically when the internal memory is full. How this will happen? Can I use pointers directly. I used the configuration to interface SRAM with ADSP is given below,
*pEPCTL &= ~(B0SD)
*pAMICTL0 = ( WS4 | HC1 | RHC1 | IC7 | AMIEN | AMIFLSH)
Pls give solution for this.
Hi Sruthi,
You can simply program few registers as mentioned in Chapter 3 Programming Models of the Hardware Reference Manual. After that, you can read/write to the external SRAM in the same way you access the internal RAM.
The link for downloading the HRM is given below.
www.analog.com/.../ADSP-2137x_hwr_rev2.2.pdf
Hope this helps.
Regards,
Anand Selvaraj.
Hi Anand,
Thank you for the reply. I refered the HRM of ADSP21369. In my application I am not using DMA access, core access only using. I am not configuring any DMA registers. My doubt is how data will go to external SRAM if the internal memory is full. Is the data will go to external SRAM automatically if I configure EPCTL and AMICTL0 registers?
Regards,
Sruthi.
Hi Sruthi,
No, data will not automatically go into external memory when internal memory is exhausted. You need to explicitly write data to external memory.
Regards,
Anand Selvaraj.
Hi Anand,
Thanks for the reply.I have one more doubt.How I get to know whether the internal memory is full.
Regards,
Sruthi.
Hi Sruthi,
You can view the used and unused memory using a MAP file.
To Enable "Generate Symbol MAP" option Go to Project-->Properties-->C/C++ Build --> SHARC Linker option in the tool setting tab --> General --> Enable the "Generate symbol map (-map)" option.A MAP.xml file will created in the 'Debug' folder after a successful build.
For VDSP, this option is available in Project->Project Options-> Link->General-> Enable the "Generate symbol map (-map).
If you enabled the option to "Generate Symbol Map", the Linker will generate a project_name.map.xml file which can be viewed in Internet Explorer to view the memory map of your project. It shows the memory sections declared in the LDF, their start and end bounds and - most importantly - their free/used space. Using this map file you can also determine whether there is perhaps a memory section that is being under-used that you could place more data into.
Regards,
Anand Selvaraj.
Please log in to reply.