Page 1 of 1

add FSMC related code for stm32G4

Posted: Wed May 13, 2026 8:02 am
by alex31
Hello,

STM32G4[78]xx devices with 100 pins or more can address external SRAM.

I have tested external SRAM support on an STM32G474-EVAL1 board before designing our own hands-on DSP PCB, and it works. Please find attached the patch adding the required ChibiOS support.

I will also submit a separate patch for contrib.

Note: this required heavy modifications to the evaluation board, because the SRAM signals are not routed to the MCU pins by default. It involved quite a bit of soldering to disconnect some of the motor-control circuitry and route the signals to the SRAM instead. Also, if anyone intends to try this on the same board, be aware that the silkscreen markings are not aligned with the 0-ohm resistors.

Alexandre

Re: add FSMC related code for stm32G4

Posted: Wed Jun 03, 2026 4:15 pm
by alex31
a PR has been issued : https://github.com/chibios-upstream/chibios/pull/7 to test the new way of submitting patches.

Re: add FSMC related code for stm32G4

Posted: Wed Jun 03, 2026 7:41 pm
by Giovanni
Keeping this open until it is done there.

Giovanni

Re: add FSMC related code for stm32G4

Posted: Tue Jun 09, 2026 6:19 am
by Giovanni
Change merged.

Giovanni