diff --git a/CHANGELOG.md b/CHANGELOG.md index edfb2f5d9..af167e6c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Bug fixes * qspi: fixed bug with GetData() that wouldn't return correct data when passed actual address instead of normalized offset (i.e. >= 0x90000000). +* sdram: fixed occasional hard fault caused by `RPDelay`, which is now set to 16 ### Other diff --git a/src/dev/sdram.cpp b/src/dev/sdram.cpp index de0043602..366aab3df 100644 --- a/src/dev/sdram.cpp +++ b/src/dev/sdram.cpp @@ -90,7 +90,7 @@ SdramHandle::Result SdramHandle::PeriphInit() SdramTiming.SelfRefreshTime = 4; SdramTiming.RowCycleDelay = 8; // started at 7 SdramTiming.WriteRecoveryTime = 3; - SdramTiming.RPDelay = 1; + SdramTiming.RPDelay = 16; SdramTiming.RCDDelay = 10; // started at 2 // SdramTiming.LoadToActiveDelay = 16; // SdramTiming.ExitSelfRefreshDelay = 16;