From e6437f975b3e64dbd85d3939ae07893cf816a992 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 1 Sep 2017 20:26:05 +0200 Subject: UART magic seems to be working now --- fw/stm32_flash.ld | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'fw/stm32_flash.ld') diff --git a/fw/stm32_flash.ld b/fw/stm32_flash.ld index 5d22b48..b763d8f 100644 --- a/fw/stm32_flash.ld +++ b/fw/stm32_flash.ld @@ -2,8 +2,8 @@ ENTRY(Reset_Handler) MEMORY { - FLASH (rx): ORIGIN = 0x08000000, LENGTH = 14K - CONFIGFLASH (rw): ORIGIN = 0x08003800, LENGTH = 2K + FLASH (rx): ORIGIN = 0x08000000, LENGTH = 0x3C00 + CONFIGFLASH (rw): ORIGIN = 0x08003C00, LENGTH = 0x400 RAM (xrw): ORIGIN = 0x20000000, LENGTH = 4K } @@ -39,11 +39,13 @@ SECTIONS { _sidata = _etext; } >FLASH + /* .configflash : { - . = ALIGN(2048); + . = ALIGN(0x400); *(.configdata) _econfig = .; - } >CONFIGFLASH + } >FLASH + */ /* This is the initialized data section The program executes knowing that the data is in the RAM -- cgit