Commit c7d6ee4
Fix SDRAM timing setup parameters
We now compute them from the datasheet constants.
Specifically, in procedure Initialize:
* ExitSelfRefreshDelay, SelfRefreshTime, and RowCycleDelay were all derived
from a single SDRAM_Min_Delay_In_ns constant, collapsing three distinct
timing constraints (TXSR, TRAS, TRC) into one value. SelfRefreshTime was
also hardcoded to 4 cycles, valid only at 90 MHz SDCLK.
* Replace with per-parameter ceiling division over named board constants
(SDRAM_TXSR_In_Ns, SDRAM_TRAS_In_Ns, SDRAM_TRC_In_Ns) so each constraint
is satisfied independently at any clock frequency.
STM32.Board spec:
* add new SDRAM constants for the sake of the SDRAM initialization1 parent 95a8ae7 commit c7d6ee4
2 files changed
Lines changed: 15 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 172 | | |
178 | 173 | | |
179 | 174 | | |
180 | 175 | | |
181 | 176 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
190 | 185 | | |
191 | 186 | | |
192 | 187 | | |
| |||
241 | 236 | | |
242 | 237 | | |
243 | 238 | | |
244 | | - | |
245 | | - | |
| 239 | + | |
246 | 240 | | |
247 | 241 | | |
248 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
0 commit comments