Skip to content

Correct speed for SDRAM GPIO pins at higher SDCLK speeds#471

Merged
jklmnn merged 1 commit into
AdaCore:masterfrom
pat-rogers:sdram_pin_config
May 8, 2026
Merged

Correct speed for SDRAM GPIO pins at higher SDCLK speeds#471
jklmnn merged 1 commit into
AdaCore:masterfrom
pat-rogers:sdram_pin_config

Conversation

@pat-rogers
Copy link
Copy Markdown
Contributor

@pat-rogers pat-rogers commented May 7, 2026

With a SYSCLK at 216MHz, the SDCLK is 108MHz. A GPIO output speed of Speed_50MHz is insufficient for a 108MHz signal. 50MHZ is borderline, and can (does) cause signal integrity issues, especially on a board with marginal silicon. It should be Speed_100MHz or Speed_Very_High (the STM32F7 HAL uses GPIO_SPEED_FREQ_VERY_HIGH for FMC pins).

I have observed this change to be necessary at a SYSCLK setting of 216MHz on an F746.

With a SYSCLK at 216MHz, the SDCLK is 108MHz. A GPIO output speed of Speed_50MHz
is insufficient for a 108MHz signal. At 108MHz a GPIO output speed of 50MHZ is
borderline, and can (does) cause signal integrity issues, especially on a board
with marginal silicon. It should be Speed_100MHz or Speed_Very_High (the STM32F7
HAL uses GPIO_SPEED_FREQ_VERY_HIGH for FMC pins).
@pat-rogers pat-rogers changed the title Correct GPIO config for SDRAM GPIO pins at higher SDCLK speeds Correct config for SDRAM GPIO pins at higher SDCLK speeds May 7, 2026
@pat-rogers pat-rogers changed the title Correct config for SDRAM GPIO pins at higher SDCLK speeds Correct speed for SDRAM GPIO pins at higher SDCLK speeds May 7, 2026
@jklmnn jklmnn merged commit 2381070 into AdaCore:master May 8, 2026
3 checks passed
@pat-rogers pat-rogers deleted the sdram_pin_config branch May 8, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants