Recently I'm debugging C6678 XMC MPAX functionality. I know how to remap reserved memory to other functional memory, but how could I use the reserved memory? For example , I remap 0x50000000 to 0x80000000, we can use memcpy/memset to handle the address directly, like "memset(0x50000000,100,100)".
But how could I define variables or codes in the reserved memory before it remmaped ? I tried a methed down, but failed.
MyCmd.cmd
MEMORY
{
EXT_MEM : o = 50000000h l = 00007FFFh
}
SECTIONS
{
.extMem> EXT_MEM
}
Main.c
#pragma DATA_SECTION(testBuf,".extMem")
float testBuf[10];
When I ran my program, CCS5 report CPU error.
Could someone give me some advices ? Thank you for your time.