Skip to content

Commit 24ccb1d

Browse files
pat-rogersjklmnn
authored andcommitted
Cite ST BSP for SDRAM AC timings; add constants on F429/F469/F769
F429/F469/F769 previously had a single SDRAM_Min_Delay_In_ns; replace with the same SDRAM_TRAS_In_Ns / SDRAM_TRC_In_Ns / SDRAM_TXSR_In_Ns trio that the shared SDRAM driver expects. F746 comment block reworked to cite the actual on-board part (Micron MT48LC4M32B2B5-6A) and the ST BSP source; tXSR corrected from 70 to 67 to match the Micron datasheet.
1 parent c7d6ee4 commit 24ccb1d

4 files changed

Lines changed: 21 additions & 6 deletions

File tree

boards/stm32_common/stm32f429disco/stm32-board.ads

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@ package STM32.Board is
132132
SDRAM_Read_Pipe : constant STM32.FMC.FMC_SDRAM_Read_Pipe_Delay :=
133133
STM32.FMC.FMC_ReadPipe_Delay_1;
134134
SDRAM_Refresh_Cnt : constant := 1386;
135-
SDRAM_Min_Delay_In_ns : constant := 70;
135+
136+
-- SDRAM AC timings (ns) for the on-board ISSI IS42S16400J
137+
-- Values from the ST BSP in stm32f429i_discovery_sdram.c at SDCLK = 90 MHz:
138+
SDRAM_TRAS_In_Ns : constant := 42; -- TRAS
139+
SDRAM_TRC_In_Ns : constant := 70; -- TRC
140+
SDRAM_TXSR_In_Ns : constant := 70; -- TXSR
136141

137142
---------------
138143
-- SPI5 Pins --

boards/stm32_common/stm32f469disco/stm32-board.ads

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ package STM32.Board is
129129
SDRAM_Read_Pipe : constant STM32.FMC.FMC_SDRAM_Read_Pipe_Delay :=
130130
STM32.FMC.FMC_ReadPipe_Delay_0;
131131
SDRAM_Refresh_Cnt : constant := 16#0569#;
132-
SDRAM_Min_Delay_In_ns : constant := 70;
132+
-- SDRAM AC timings (ns) for the on-board Micron MT48LC4M32B2B5
133+
-- Values from the ST BSP in stm32469i_discovery_sdram.c at SDCLK = 90 MHz:
134+
SDRAM_TRAS_In_Ns : constant := 42; -- TRAS
135+
SDRAM_TRC_In_Ns : constant := 70; -- TRC
136+
SDRAM_TXSR_In_Ns : constant := 70; -- TXSR
133137

134138
---------
135139
-- I2C --

boards/stm32_common/stm32f746disco/stm32-board.ads

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ package STM32.Board is
116116
SDRAM_Read_Pipe : constant STM32.FMC.FMC_SDRAM_Read_Pipe_Delay :=
117117
STM32.FMC.FMC_ReadPipe_Delay_0;
118118
SDRAM_Refresh_Cnt : constant := 1539;
119-
SDRAM_TRAS_In_Ns : constant := 42; -- IS42S32400F min self-refresh time
120-
SDRAM_TRC_In_Ns : constant := 60; -- IS42S32400F min row cycle time
121-
SDRAM_TXSR_In_Ns : constant := 70; -- IS42S32400F min exit self-refresh delay
119+
-- SDRAM AC timings (ns) for the on-board Micron MT48LC4M32B2B5-6A
120+
-- Values from the ST BSP in stm32746g_discovery_sdram.c at SDCLK = 100 MHz:
121+
SDRAM_TRAS_In_Ns : constant := 42; -- TRAS
122+
SDRAM_TRC_In_Ns : constant := 60; -- TRC
123+
SDRAM_TXSR_In_Ns : constant := 67; -- TXSR
122124

123125
---------
124126
-- I2C --

boards/stm32_common/stm32f769disco/stm32-board.ads

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ package STM32.Board is
125125
SDRAM_Read_Pipe : constant STM32.FMC.FMC_SDRAM_Read_Pipe_Delay :=
126126
STM32.FMC.FMC_ReadPipe_Delay_0;
127127
SDRAM_Refresh_Cnt : constant := 16#0603#;
128-
SDRAM_Min_Delay_In_ns : constant := 60;
128+
-- SDRAM AC timings (ns) for the on-board Micron MT48LC4M32B2B5-6A
129+
-- Values from the ST BSP in stm32f769i_discovery_sdram.c at SDCLK = 100 MHz:
130+
SDRAM_TRAS_In_Ns : constant := 42; -- TRAS
131+
SDRAM_TRC_In_Ns : constant := 60; -- TRC
132+
SDRAM_TXSR_In_Ns : constant := 67; -- TXSR
129133

130134
---------
131135
-- I2C --

0 commit comments

Comments
 (0)