Page 1 of 1

align all stm32g4xx linker script to use ram2

Posted: Fri Feb 27, 2026 9:55 am
by alex31
Hello,

I noticed a difference in the STM32G4 GCC linker scripts.

For most G4 devices, the default RAM region aliases (MAIN_STACK_RAM, PROCESS_STACK_RAM, DATA_RAM, BSS_RAM, HEAP_RAM) point to ram2 (SRAM1).
For the G491 family, these aliases point to ram0 (SRAM1 + SRAM2 + CCM).

Would it be possible to align the G491 linker scripts with the other G4 scripts and use ram2 (SRAM1) as the default as well?

Thanks,
Alexandre

Re: align all stm32g4xx linker script to use ram2

Posted: Tue Jun 09, 2026 7:10 am
by Giovanni
Fixed in repository already, forgot to close this, thanks.

Giovanni