align all stm32g4xx linker script to use ram2 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

align all stm32g4xx linker script to use ram2

Post 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
Attachments
stm32g491_ram2_patch.zip
(658 Bytes) Downloaded 190 times
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: align all stm32g4xx linker script to use ram2

Post by Giovanni »

Fixed in repository already, forgot to close this, thanks.

Giovanni
Post Reply