Skip to main content
Visitor II
May 13, 2025
Solved

STM32H7 FMC - SDRAM byte and bit swapping

  • May 13, 2025
  • 1 reply
  • 507 views

Hi

I am working on a project with an STM32H743 and a 32-bit SDRAM

The FMC signals are quite randomly scattered across the package and this makes layout quite convoluted and difficult. I'd like to swap byte-lanes and individual bits within each byte, for example:

- connect DQ0 - DQ7 on the SDRAM to DQ24 - DQ31 on the microntroller, then swap the mask signals DQM0 with DQM3.

- swap bits within a byte, for example after swapping the bytes as above, connect DQ0 to DQ25 on the micro and DQ1 to DQ24 on the micro.

The SDRAM should not care about these type of swaps, but are there any restrictions in the way that the FMC works that would stop this from working?

Thanks

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

    Hello,

    You can swap the positions of the byte lines but also swap their DQMx accordingly.

    And if you need to swap the lines, you need swap them inside the byte.

    Hope I answered your question.

    1 reply

    JF999Author
    Visitor II
    May 20, 2025

    Hi,

    Does anyone have any thoughts on this at all?

    mƎALLEmAnswer
    Technical Moderator
    May 20, 2025

    Hello,

    You can swap the positions of the byte lines but also swap their DQMx accordingly.

    And if you need to swap the lines, you need swap them inside the byte.

    Hope I answered your question.