Skip to content

Commit 73eebaa

Browse files
committed
NUCLEO_L476RG: FLASH size of 1MB, not 2MB
MBED_APP_SIZE was erroneously defined to 2MB for this target, while it's only 1MB.
1 parent 1d80202 commit 73eebaa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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. */

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)