Skip to main content
Associate III
September 29, 2025
Solved

STM32H743 + SDIO + FATFS(use DMA template)fail to mount

  • September 29, 2025
  • 3 replies
  • 447 views

STM32H7 + SDIO + FATFS(use DMA template Disable) => works fine. I can read data from SD card without issue.

STM32H7 + SDIO + FATFS(use DMA template Enable) => mount will fail

snkparty1_0-1759162707742.png

snkparty1_1-1759162720437.png

snkparty1_2-1759162770187.png

The only difference is "use DMA template". Once this option is turned on, fatfs mount will fail...

Best answer by Imen.D

Hello @snkparty1 ,

The DMA controller to be used should be properly configured, and it shows that the MDMA in your ioc is not configured.

You can refer to this AN5200: Getting started with the STM32H7 MCU SDMMC host controller for more details about using SDMMC with DMA and how to configure the MDMA.

3 replies

Technical Moderator
September 29, 2025

Hello @snkparty1 ,

Which CubeMX and Cube firmware version used? 

If the problem occurred with latest releases, please share you ioc file, this will help our team to reproduce and investigate this issue.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
snkparty1Author
Associate III
September 30, 2025

Thanks to inform me the reason. 

firmware and cubeide version

snkparty1_0-1759204701874.png

IOC file attached

SD card schematic

snkparty1_1-1759204833062.png

 

Imen.DBest answer
Technical Moderator
October 1, 2025

Hello @snkparty1 ,

The DMA controller to be used should be properly configured, and it shows that the MDMA in your ioc is not configured.

You can refer to this AN5200: Getting started with the STM32H7 MCU SDMMC host controller for more details about using SDMMC with DMA and how to configure the MDMA.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
snkparty1Author
Associate III
October 5, 2025

Thank you, I will check this document