Using extended address, DDR Ram
I am using a Pic32MZ2064DAH176 with integral 32Mb DDR RAM.
XC32 version 2.3
I tried to define a memory region in DDR like this.
#pragma region name="ddr_mem" origin = 0xA8000000 size = 0x1000
Then created a struct (of type SIG_WINDOW) array in this region like this
SIG_WINDOW sigWindow __attribute__((region("ddr_mem")));
All compiles and runs BUT if I look at the watch screen I see that sigWindow starts at address 0x0
So now I am not sure if sigWindow is actually in DDR or located @ 0x00
I can set pointers to DDR address and read/write to memory locations, this works fine.
I was hoping to be able to allocate multiple regions in DDR without having to keep track of each data structure's absolute address.
Any advice greatly appreciated.