From 6b40626a1bbb08968d3c615023f04fedff9254af Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 1 Sep 2017 15:44:39 +0200 Subject: DMA channel assignments redone, basic protocol stuff working --- fw/stm32_flash.ld | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'fw/stm32_flash.ld') 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 -- cgit