diff --git a/targets/stm32l432/linker/stm32l4xx.ld b/targets/stm32l432/linker/stm32l4xx.ld index 9b010ed..4e43df7 100644 --- a/targets/stm32l432/linker/stm32l4xx.ld +++ b/targets/stm32l432/linker/stm32l4xx.ld @@ -12,9 +12,15 @@ _estack = 0x2000c000; _MIN_STACK_SIZE = 0x400; +/* + Memory layout of device: + 20 KB 198KB-8 38 KB + | bootloader | application | secrets/data | + */ + MEMORY { - flash (rx) : ORIGIN = 0x08005000, LENGTH = 190K + flash (rx) : ORIGIN = 0x08005000, LENGTH = 198K - 8 ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K } diff --git a/targets/stm32l432/linker/stm32l4xx_extra.ld b/targets/stm32l432/linker/stm32l4xx_extra.ld index e58b1c8..6948c90 100644 --- a/targets/stm32l432/linker/stm32l4xx_extra.ld +++ b/targets/stm32l432/linker/stm32l4xx_extra.ld @@ -14,7 +14,7 @@ _MIN_STACK_SIZE = 0x400; MEMORY { - flash (rx) : ORIGIN = 0x08008000, LENGTH = 178K + flash (rx) : ORIGIN = 0x08008000, LENGTH = 186K - 8 ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K }