2020-06-02 06:45 AM
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:
HW reference:
2020-06-02 11:29 PM
Look for SDRAM waveforms and timings in the datasheet.
2020-06-03 01:33 AM
Well, that is the point, I did all that and below the computation I did:
Still, I have a RAM test which is passing but I get random faults with incomprehensible CPU registers content when accessing the SDRAM, so clearly I am missing something.
My point is that if the board supports this as a max frequency, why doesn't STM provide a working configuration?
2020-06-03 01:58 AM
2020-06-03 03:32 AM
Many thanks, I missed that. We can consider this topic closed