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.

This commit is contained in:
Silvano Seva 2022-08-11 09:26:11 +02:00
parent 84d66ca1b3
commit 4b0326b1c8
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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);