cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743BI and SDRAM 32bit data bus

Hector_06
Associate III

Hello Everyone ;

we are new to STM32H7  ; we used before stm32f4 in many projects but STM32H7 we still new; so I am sorry to ask simple questions. 

We have designed our board based on STM32H743BI and SDRAM IS42R32160F-7. After a couple of weeks of trying to access the Sdarm, we could not make it work; sometimes we could read and write a few bytes ; sometimes up to 1k bytes but not more, and always crashes. It could be a clock setting problem or timing problem; or a connection problem between the MCU and SDRAM. 

The MCU crystal is 12MHZ our goal is to run the MCU at 480MHZ and SDRAM at 100 MHZ 

Let's start step by step please ; 

my first question is to verify the pins connection please and SDRAM BANK; we assume that is should be bank 1  and mapped at  0X70000000 address.

could you confirm it please? 

 

/** FMC GPIO Configuration
PI9 ------> FMC_D30
PI10 ------> FMC_D31
PF0 ------> FMC_A0
PF1 ------> FMC_A1
PF2 ------> FMC_A2
PF3 ------> FMC_A3
PF4 ------> FMC_A4
PF5 ------> FMC_A5
PA7 ------> FMC_SDNWE
PC4 ------> FMC_SDNE0
PC5 ------> FMC_SDCKE0
PF11 ------> FMC_SDNRAS
PF12 ------> FMC_A6
PF13 ------> FMC_A7
PF14 ------> FMC_A8
PF15 ------> FMC_A9
PG0 ------> FMC_A10
PG1 ------> FMC_A11
PE7 ------> FMC_D4
PE8 ------> FMC_D5
PE9 ------> FMC_D6
PE10 ------> FMC_D7
PE11 ------> FMC_D8
PE12 ------> FMC_D9
PE13 ------> FMC_D10
PE14 ------> FMC_D11
PE15 ------> FMC_D12
PH8 ------> FMC_D16
PH9 ------> FMC_D17
PH10 ------> FMC_D18
PH11 ------> FMC_D19
PH12 ------> FMC_D20
PD8 ------> FMC_D13
PD9 ------> FMC_D14
PD10 ------> FMC_D15
PD14 ------> FMC_D0
PD15 ------> FMC_D1
PG2 ------> FMC_A12
PG4 ------> FMC_BA0
PG5 ------> FMC_BA1
PG8 ------> FMC_SDCLK
PH13 ------> FMC_D21
PH14 ------> FMC_D22
PH15 ------> FMC_D23
PI0 ------> FMC_D24
PI1 ------> FMC_D25
PI2 ------> FMC_D26
PI3 ------> FMC_D27
PD0 ------> FMC_D2
PD1 ------> FMC_D3
PG15 ------> FMC_SDNCAS
PE0 ------> FMC_NBL0
PE1 ------> FMC_NBL1
PI4 ------> FMC_NBL2
PI5 ------> FMC_NBL3
PI6 ------> FMC_D28
PI7 ------> FMC_D29
*/

is the pins connection right ? 

 

Thank you in advanced 

Regards 

Hector 

 

 

 

10 REPLIES 10

The sync looks wrong. Not everything comes with examples, sometimes you have to read and correctly interpret the documentation. 

Let's start with the docs for the panel as that will set the expectations there. Provide a full part# or link to documentation. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..