Skip to content

Commit

Permalink
Quick RPDelay fix (#409)
Browse files Browse the repository at this point in the history
* Fixed occasional qspi init bug

* Returned `RPDelay` to 16

* Updated changelog with `RPDelay` change
  • Loading branch information
CorvusPrudens authored Oct 1, 2021
1 parent fcf236b commit 231629f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/dev/sdram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 231629f

Please sign in to comment.