align all stm32g4xx linker script to use ram2
Posted: Fri Feb 27, 2026 9:55 am
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
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