I'm trying to divide a large program into different LDRs, due to limited code memory space. Each of these LDR can operate individually. Is there any way to share global variables inside DATABANK in between all LDRs?
I use follow function to switch to next LDR:
//disable all interrupts
*pSIC_IMASK0 = 0x0000;
dSpiAddress = 0x010000; // Point to next LDR
dFlags = BFLAG_PERIPHERAL|BFLAG_FIRST;
bfrom_SpiBoot(dSpiAddress, dFlags, 0, NULL);