Fixed missing NOLOAD directive in STM32F405 linker scripts causing the linker to emit initialisation data for the BSS section at address 0x2000 0000 and, consequently, making the flasher to wipe up the settings region in MCU's internal flash.

pull/103/head
Silvano Seva 2022-08-11 09:26:11 +02:00
rodzic 84d66ca1b3
commit 4b0326b1c8
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -175,7 +175,9 @@ SECTIONS
} > smallram
_bss_end = .;
.bss2 :
/* Second BSS section located in the "large" RAM, explicitly request to not
initialize it */
.bss2 (NOLOAD) :
{
*(.bss2)
. = ALIGN(8);

Wyświetl plik

@ -174,7 +174,9 @@ SECTIONS
} > smallram
_bss_end = .;
.bss2 :
/* Second BSS section located in the "large" RAM, explicitly request to not
initialize it */
.bss2 (NOLOAD) :
{
*(.bss2)
. = ALIGN(8);