aboutsummaryrefslogtreecommitdiff
path: root/fw/stm32_flash.ld
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2017-09-01 15:44:39 +0200
committerjaseg <git@jaseg.net>2017-09-01 15:44:39 +0200
commit6b40626a1bbb08968d3c615023f04fedff9254af (patch)
tree98cb753697c1ddc16acb653bda9d543d721df558 /fw/stm32_flash.ld
parenta832816d61aea37bea349dcd50098511712bc315 (diff)
download7seg-6b40626a1bbb08968d3c615023f04fedff9254af.tar.gz
7seg-6b40626a1bbb08968d3c615023f04fedff9254af.tar.bz2
7seg-6b40626a1bbb08968d3c615023f04fedff9254af.zip
DMA channel assignments redone, basic protocol stuff working
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