Correct flash2 region. Rename _bconfig_start->bootloader_configuration.

pull/238/head
Szczepan Zalega 2019-08-24 08:12:26 +02:00
rodzic 7042b0b656
commit 40c3c13b07
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D9BAE35991DE5B22
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -14,15 +14,15 @@ _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
bootloader_configuration should be equal to (APPLICATION_END_PAGE) page address, from targets/stm32l432/src/memory_layout.h:30; and equal to flash2 origin
*/
_bconfig_start = 0x08000000 + 216*1024+8;
bootloader_configuration = 0x08000000 + 216*1024+8;
MEMORY
{
flash (rx) : ORIGIN = 0x08000000, LENGTH = 32K
flash2 (rx) : ORIGIN = 0x08000000 + 216*1024, LENGTH = 2K
flash2 (rx) : ORIGIN = 0x08000000 + 216*1024+8, LENGTH = 2K-8
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K
}
@ -47,7 +47,7 @@ SECTIONS
_etext = .;
} >flash
.flag2 _bconfig_start :
.flag2 bootloader_configuration :
{
KEEP(*(.flag2)) ;
} > flash2