STM32L4 linker script for 128 KB RAM
I solved my own issue using a previous post on the forum:
here is a solution:
linker script:
region definitions:
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 96K
RAM_2 (xrw) : ORIGIN = 0x10000000, LENGTH = 32K
in section definitions:
.ram2_bss :
{
. = ALIGN(4);
*(.ram2_bss)
*(.ram2_bss*)
} >RAM_2
C source code:
static uint8_t attribute ((section (“.ram2_bss”), used)) ucHeap configTOTAL_HEAP_SIZE ;
regards,
Sylvain