kopia lustrzana https://github.com/OpenRTX/OpenRTX
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.
rodzic
84d66ca1b3
commit
4b0326b1c8
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue