From a0d27c2c569c5afd6e9753f7508186b2e786d47b Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Fri, 22 Mar 2019 13:54:42 -0400 Subject: [PATCH] add memory layout commment, undo -8 simplification --- targets/stm32l432/linker/stm32l4xx.ld | 8 +++++++- targets/stm32l432/linker/stm32l4xx_extra.ld | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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 }