Skip to content

Commit 8484467

Browse files
committed
GCC Bootloader support
1 parent 82a33b2 commit 8484467

File tree

1 file changed

+7
-1
lines changed
  • targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/TOOLCHAIN_GCC_ARM

1 file changed

+7
-1
lines changed

targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/TOOLCHAIN_GCC_ARM/STM32L151XC.ld

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
/* Linker script to configure memory regions. */
2+
#if !defined(MBED_APP_START)
3+
#define MBED_APP_START 0x08000000
4+
#endif
25

6+
#if !defined(MBED_APP_SIZE)
7+
#define MBED_APP_SIZE 256k
8+
#endif
39
MEMORY
410
{
511
/* 256KB FLASH, 32KB RAM, Reserve up till 0x13C. There are 0x73 vectors = 292
612
* bytes (0x124) in RAM. But all GCC scripts seem to require BootRAM @0x138
713
*/
8-
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 256k
14+
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
915
RAM (rwx) : ORIGIN = 0x2000013C, LENGTH = 0x8000-0x13C
1016
}
1117

0 commit comments

Comments
 (0)