Skip to main content
Associate III
Solved

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

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...

This topic has been closed for replies.
Imen.DBest answer
ST Technical Moderator

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks

4 replies

ST Technical Moderator

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
snkparty1Author
Associate III

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
ST Technical Moderator

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
snkparty1Author
Associate III

Thank you, I will check this document