aboutsummaryrefslogtreecommitdiff
path: root/fw/stm32_flash.ld
diff options
context:
space:
mode:
Diffstat (limited to 'fw/stm32_flash.ld')
-rw-r--r--fw/stm32_flash.ld11
1 files changed, 9 insertions, 2 deletions
diff --git a/fw/stm32_flash.ld b/fw/stm32_flash.ld
index 87e095e..5d22b48 100644
--- a/fw/stm32_flash.ld
+++ b/fw/stm32_flash.ld
@@ -2,7 +2,8 @@
ENTRY(Reset_Handler)
MEMORY {
- FLASH (rx): ORIGIN = 0x08000000, LENGTH = 16K
+ FLASH (rx): ORIGIN = 0x08000000, LENGTH = 14K
+ CONFIGFLASH (rw): ORIGIN = 0x08003800, LENGTH = 2K
RAM (xrw): ORIGIN = 0x20000000, LENGTH = 4K
}
@@ -31,12 +32,18 @@ SECTIONS {
/* Necessary KEEP sections (see http://sourceware.org/ml/newlib/2005/msg00255.html) */
KEEP (*(.init))
KEEP (*(.fini))
-
+
. = ALIGN(4);
_etext = .;
/* This is used by the startup in order to initialize the .data section */
_sidata = _etext;
} >FLASH
+
+ .configflash : {
+ . = ALIGN(2048);
+ *(.configdata)
+ _econfig = .;
+ } >CONFIGFLASH
/* This is the initialized data section
The program executes knowing that the data is in the RAM