cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H750 Discovery board SDRAM wrong pin connection (design flaw?)

StanJerm
Associate III

hi, i m working on SDRAM for H750 Disco board, saw the schematic diagram(enclosed) shows pin PH5 - SDNWE, PH6 - SDNE1, PH7 - SDCKE1. But STM32CubeIDE has the wrong connection PC0, PC2 and PC3 as shown enclosed.

I managed to change the pin of SDNWE to PH5, but PH6 and PH7 were not an alternative pin to SDNE1 and SDCKE1. i  tried to use GPIO Pin instead for PH6 & 7 but my code couldn't worked. (the same code worked on STM32F750 Disco board)  Could anyone advise what to do  

1 ACCEPTED SOLUTION

Accepted Solutions

First, the disco board is using SDNE1 and SDCKE1 for the SDRAMPC2: SDNE0 and PC3:SDCKE0. So this is not the correct GPIO config for the board.

Second, if you start your project from the MCU and enable SDRAM with the following config (as the one of the CubeMX board's config):

SofLit_0-1724668232728.png

you will get this GPIO default config:

SDNWE - PC0

SDNE1 - PB6

SDCKE1 - PB5

And if you want to change the alternate function for example to the location of SDNWE from PC0 to PH5, simply go to the pinout view and write SDNWE in the search bar:

SofLit_2-1724668460056.png

You will seeing all the GPIOs that contains that alternate function (SDNWE).

So simply go to PH5 ball and select FMC_SDNWE

SofLit_3-1724668637797.png

Your SDNWE will be mapped on PH5 instead of PC0. You will need to do the same for other pins (if necessary).

Hope I answered your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

9 REPLIES 9

How is a design that demonstrably works flawed?

It uses half the memory as a cost/part saving strategy. Perhaps it's more available long term and interchangeable?

There might be a Cube side issue, that you picked the wrong template, or the template is broken. You pick the right board?

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

1.jpgCubeIDE SDRAM.jpg

i confirmed its the correct template, correct board H750, the working code is on F750 Disco board. You can try load H750 from CubeIDE..

Hello,

I'm not sure I understandood the case.

I started a new project from Board and selected STM32H750-DK board, Selected to initialize the peripherals and this is the GPIOs selected by CubeMx for the SDRAM:

SofLit_0-1724658151478.png

So nothing wrong here.

Could you please share your ioc file?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

this is e board selection, but i still getting the wrong connection PC0, PC2 and PC3.

HB.jpg

i can only choose STM32H750B-DK... any difference ?

 

I didn't understand. There is only one DK board available on the market: 

SofLit_0-1724660133199.png

Could you please share your ioc file?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

First, the disco board is using SDNE1 and SDCKE1 for the SDRAMPC2: SDNE0 and PC3:SDCKE0. So this is not the correct GPIO config for the board.

Second, if you start your project from the MCU and enable SDRAM with the following config (as the one of the CubeMX board's config):

SofLit_0-1724668232728.png

you will get this GPIO default config:

SDNWE - PC0

SDNE1 - PB6

SDCKE1 - PB5

And if you want to change the alternate function for example to the location of SDNWE from PC0 to PH5, simply go to the pinout view and write SDNWE in the search bar:

SofLit_2-1724668460056.png

You will seeing all the GPIOs that contains that alternate function (SDNWE).

So simply go to PH5 ball and select FMC_SDNWE

SofLit_3-1724668637797.png

Your SDNWE will be mapped on PH5 instead of PC0. You will need to do the same for other pins (if necessary).

Hope I answered your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.