2024-08-25 11:52 PM
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
Solved! Go to Solution.
2024-08-26 03:38 AM - edited 2024-08-26 04:31 AM
First, the disco board is using SDNE1 and SDCKE1 for the SDRAM. PC2: 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):
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:
You will seeing all the GPIOs that contains that alternate function (SDNWE).
So simply go to PH5 ball and select FMC_SDNWE
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.
2024-08-25 11:55 PM - edited 2024-08-26 12:03 AM
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?
2024-08-25 11:56 PM
2024-08-26 12:24 AM
i confirmed its the correct template, correct board H750, the working code is on F750 Disco board. You can try load H750 from CubeIDE..
2024-08-26 12:44 AM - edited 2024-08-26 12:45 AM
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:
So nothing wrong here.
Could you please share your ioc file?
2024-08-26 01:04 AM
this is e board selection, but i still getting the wrong connection PC0, PC2 and PC3.
2024-08-26 01:05 AM
2024-08-26 01:06 AM
i can only choose STM32H750B-DK... any difference ?
2024-08-26 01:15 AM
I didn't understand. There is only one DK board available on the market:
Could you please share your ioc file?
2024-08-26 03:38 AM - edited 2024-08-26 04:31 AM
First, the disco board is using SDNE1 and SDCKE1 for the SDRAM. PC2: 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):
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:
You will seeing all the GPIOs that contains that alternate function (SDNWE).
So simply go to PH5 ball and select FMC_SDNWE
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.