Fixed error in STM32F4 linker scripts causing radio thread lockup

Error in linker script definitions made the heap area to start at end of the
64kB CCM RAM, thus effectively allocating memory in an access-protected zone.
pull/238/head
Silvano Seva 2024-02-07 18:37:28 +01:00
rodzic 6c8eaf7073
commit 3c137a31de
2 zmienionych plików z 10 dodań i 12 usunięć

Wyświetl plik

@ -164,15 +164,17 @@ SECTIONS
} > smallram AT > flash
_etext = LOADADDR(.data);
/* Put the display framebuffer in the "large" RAM, explicitly request to not
initialize it */
/* Secondary bss section, placed in the 128kB RAM and not initialized: here
go the display framebuffer and, immediately after it, the heap area. */
.bss2 (NOLOAD) :
{
*(.bss.fb)
. = ALIGN(8);
_end = .;
PROVIDE(end = .);
} > largeram
/* .bss section: uninitialized global variables go to ram */
/* Primary bss section, placed in the 64kB CCM RAM: uninitialized global variables */
.bss :
{
_bss_start = .;
@ -182,7 +184,4 @@ SECTIONS
. = ALIGN(8);
} > smallram
_bss_end = .;
_end = .;
PROVIDE(end = .);
}

Wyświetl plik

@ -163,15 +163,17 @@ SECTIONS
} > smallram AT > flash
_etext = LOADADDR(.data);
/* Put the display framebuffer in the "large" RAM, explicitly request to not
initialize it */
/* Secondary bss section, placed in the 128kB RAM and not initialized: here
go the display framebuffer and, immediately after it, the heap area. */
.bss2 (NOLOAD) :
{
*(.bss.fb)
. = ALIGN(8);
_end = .;
PROVIDE(end = .);
} > largeram
/* .bss section: uninitialized global variables go to ram */
/* Primary bss section, placed in the 64kB CCM RAM: uninitialized global variables */
.bss :
{
_bss_start = .;
@ -181,7 +183,4 @@ SECTIONS
. = ALIGN(8);
} > smallram
_bss_end = .;
_end = .;
PROVIDE(end = .);
}