I'm working on a bigger project in my Cortex M3 chip and I'm running low on the RAM. My proposed idea is, I need to make space in my RAM by removing the global variables on the bootloader code so that the RAM is cleared in the region after the bootloader jumps to the application code. I don't have direct access to the bootloader code in the chip, so I must change these global variables within the application code.
How can I remove this global variables with custom_delete()
function or any code . I use ARM cortex M3 (LPC1769).
To summarize, basically what I'm running is:
Custom_Delete ( ? ){
??
}
int foo[1000];
int main(){
/*
Bootloader Code
*/
Custom_Delete ( foo ) // I'm trying to remove the "foo" variable once the bootloader code is executed and the application code is run.
SCB->VTOR = (APP_START_ADDRESS) & 0x1FFFFF80 // jump to application code
}