Move _extra* debug linker scripts content to main

This commit is contained in:
Szczepan Zalega
2019-08-24 08:16:00 +02:00
parent 22293f82f2
commit 3a1ea275cc
2 changed files with 18 additions and 27 deletions

View File

@@ -13,16 +13,16 @@ _estack = 0x2000c000;
_MIN_STACK_SIZE = 0x400;
/*
flash2 is for storing bootloader data, like last used firmware version.
_bconfig_start should be equal to (APPLICATION_END_PAGE) page address, from targets/stm32l432/src/memory_layout.h:30; and equal to flash2 origin
flash_cfg is for storing bootloader data, like last used firmware version.
bootloader_configuration should be equal to (APPLICATION_END_PAGE) page address, from targets/stm32l432/src/memory_layout.h:30; and equal to flash_cfg origin
*/
_bconfig_start = 0x08000000 + 216*1024;
bootloader_configuration = 0x08000000 + 216*1024+8;
MEMORY
{
flash (rx) : ORIGIN = 0x08000000, LENGTH = 20K
flash2 (rx) : ORIGIN = 0x08000000 + 216*1024, LENGTH = 2K
flash_cfg (rx) : ORIGIN = 0x08000000 + 216*1024+8, LENGTH = 2K-8
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K
}
@@ -47,10 +47,10 @@ SECTIONS
_etext = .;
} >flash
.flag2 _bconfig_start :
.flag2 bootloader_configuration :
{
KEEP(*(.flag2)) ;
} > flash2
} > flash_cfg
_sidata = LOADADDR(.data);