Skip to main content
Explorer
August 26, 2024
Solved

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

  • August 26, 2024
  • 2 replies
  • 2352 views

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  

    This topic has been closed for replies.
    Best answer by mƎALLEm

    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.

    2 replies

    Graduate II
    August 26, 2024

    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?

    StanJermAuthor
    Explorer
    August 26, 2024

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

    Technical Moderator
    August 26, 2024

    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?

    StanJermAuthor
    Explorer
    August 26, 2024

    1.jpgCubeIDE SDRAM.jpg