SDRAM configuration for 216MHz sysclk.
Hello, with a STM32F7508-DK board, all examples using SDRAM have the sysclk to 200MHz, therefore the FMC clock to 100MHz.
I am trying to enable sysclk = 216MHz, and FMC = 108MHz, so I followed the SDRAM user manual, and configured the following settings, which seem correct to me:
#define REFRESH_COUNT ((uint32_t)0x0684) /* SDRAM refresh counter (108Mhz SD clock) */
/* Timing configuration for 108Mhz as SDRAM clock frequency (System clock is up to 216Mhz) */
Timing.LoadToActiveDelay = 2;
Timing.ExitSelfRefreshDelay = 8;
Timing.SelfRefreshTime = 5;
Timing.RowCycleDelay = 8;
Timing.WriteRecoveryTime = 3;
Timing.RPDelay = 3;
Timing.RCDDelay = 3;
However, even with these timings for the SDRAM (of course I set the PLL for 216MHz sysclk), I have random faults when accessing the SDRAM.
So my question is:
- does STM has a working example with SDRAM configuration when FMC = 108MHz?
- does anyone else have this?
HW reference:
- MT48LC4M32B2B5-6A: SDRAM external memory mounted on STM32F7508-Discovery board.