Can I get an example code to overlay VISA code in SDRAM (16 bit) to internal memory ? I tried to modify the other example projects in the forum which does overlay for nw code but I get issues .
Please find the attached Overlay code example for ADSP-21369, and it is tested with ADSP-21369 EZ_kit. I guess this will help you to understand overlay manager better.
I am looking for a overlay manager for ADSP-21489.
Also I don't see the above example has overlay for VISA sections i.e. seg_swco
See the attached files for an example code tested on ADSP-21489 EZ-KIT found in my repository. Check whether this helps
This project is for nw code overlay not for VISA. Even for nw code I had to change the packing to
#define PACKtoExecuteFrom32 \PACKING(12 B3 B4 B5 B6 B0 \ B11 B12 B1 B2 B0 B7 B8 B9 B10 B0 )
This is for Melody5 platform. Can you please confirm if this is ok.
I would also appreciate if I can get overlay code for VISA.
An SR has been logged through private support for this issue, and will continue to be dealt with through that channel. We will post the outcome here, if appropriate.
Hi Magesh , Please find the ADSP-21489 VISA overlay code in the attachment.
Thanks for the code.
Found 2 issues:
1. M5 register was not saved but used.
2. i5, l5, b5 were saved but restored in wrong order.
Yes, your understanding is correct.
1. M5 register was not saved but used inside the code.
>> You can save and restore this register as well.
2. I5, l5, b5 registers were saved and restored in wrong order.
>> Yes, these registers were restored in wrong order. You can modify it to the correct order as given below
/* Restore register values from stack */restore : m4=-1;r0=dm(i4,m4); l0=r0;r0=dm(i4,m4); m0=r0;r0=dm(i4,m4); i0=r0;r0=dm(i4,m4); l5=r0;r0=dm(i4,m4); b5=r0;r0=dm(i4,m4); i5=r0;
Retrieving data ...