Skip to content

Commit 3f46421

Browse files
Merge pull request #4554 from LMESTM/L476RG_ld_file
Fix NUCLEO_L476RG linker scripts
2 parents a6695ae + 73eebaa commit 3f46421

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#endif
3434

3535
#if !defined(MBED_APP_SIZE)
36-
#define MBED_APP_SIZE 0x200000
36+
#define MBED_APP_SIZE 0x100000
3737
#endif
3838

3939
; 1MB FLASH (0x100000) + 128KB SRAM (0x20000)

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/TOOLCHAIN_ARM_STD/stm32l476xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#endif
3434

3535
#if !defined(MBED_APP_SIZE)
36-
#define MBED_APP_SIZE 0x200000
36+
#define MBED_APP_SIZE 0x100000
3737
#endif
3838

3939
; 1MB FLASH (0x100000) + 128KB SRAM (0x20000)

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/TOOLCHAIN_GCC_ARM/STM32L476XX.ld

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
#endif
44

55
#if !defined(MBED_APP_SIZE)
6-
#define MBED_APP_SIZE 2048k
6+
#define MBED_APP_SIZE 1024k
77
#endif
88

99
/* Linker script to configure memory regions. */
1010
MEMORY
1111
{
12-
VECTORS (rx) : ORIGIN = MBED_APP_START, LENGTH = 0x400
13-
FLASH (rx) : ORIGIN = MBED_APP_START + 0x400, LENGTH = MBED_APP_SIZE - 0x400
12+
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
1413
SRAM2 (rwx) : ORIGIN = 0x10000188, LENGTH = 32k - 0x188
1514
SRAM1 (rwx) : ORIGIN = 0x20000000, LENGTH = 96k
1615
}

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/TOOLCHAIN_IAR/stm32l476xx.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
2-
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x200000; }
2+
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x100000; }
33

44
/* [ROM = 1024kb = 0x100000] */
55
define symbol __intvec_start__ = MBED_APP_START;

0 commit comments

Comments
 (0)