Updated linker script to reserve space for BootRAM

Updated linker script to reserve space for BootRAM at 0x138
pull/748/head
modtronix-com 2014-12-01 11:47:24 +11:00
parent be30dcbb0b
commit 35efc5aaa1
1 changed files with 4 additions and 2 deletions

View File

@ -1,9 +1,11 @@
/* Linker script to configure memory regions. */ /* Linker script to configure memory regions. */
MEMORY MEMORY
{ {
/* 512KB FLASH, 80KB RAM, Reserve 73 vectors = 292 bytes (0x124) in RAM */ /* 512KB FLASH, 80KB RAM, Reserve up till 0x13C. There are 0x73 vectors = 292
* bytes (0x124) in RAM. But all GCC compilers seem to require BootRAM @0x138
*/
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512k FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512k
RAM (rwx) : ORIGIN = 0x20000124, LENGTH = 0x14000-0x124 RAM (rwx) : ORIGIN = 0x2000013C, LENGTH = 0x14000-0x13C
} }
/* Linker script to place sections and symbol values. Should be used together /* Linker script to place sections and symbol values. Should be used together