Controller : LPC1517
IDE : MCUXpresso
When a variable is declared in main() of LPC1517, the address goes beyond 0x02003000.
- LPC1517 12kB RAM, address starting from 0x02000000 till 0x02003000.
But when the same variable is made to declare in global header-file, the address of the variable will begin from around 0x02000020.
Q1. Why does the address of the variable in main and global change?
Q2. How can a processor of 12kB RAM store variable in address range of above 0x02003000?
Q3. Is there anyway to avoid this out of range RAM address? so there wont be any problem in storing variable value in EEPROM(when a variable data,with RAM address > 0x02003000, is stored in EEPROM result will return 14) ?
Q4. Even when there are no other variables, the address of variables in main file will be greater than 0x02003000. Why is it so?