I'm trying to move some code from OCM to L2 SRAM. I changed the cache configuration so that it is setup as 128KB of L2SRAM and 128KB of cache. My program compiles links, the map file looks correct, the elf file looks correct, yet my program won't run.
If I move just the stack to L2SRAM, the program runs.
Since I use the first 32KB of L2 SRAM, 0x800000h to 0x807FFF, as shared memory with the A15s, I link my L2SRAM .text section to start at 0x808000. I have less than 128KB of code in this section.
Are there permission bits that have to be set to execute out of L2SRAM? I didn't see anything in the manual.
I don't understand why this doesn't work.
thanks