cancel
Showing results for 
Search instead for 
Did you mean: 

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

snkparty1
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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".
Thanks
Imen

View solution in original post

4 REPLIES 4
Imen.D
ST Employee

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".
Thanks
Imen

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.D
ST Employee

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".
Thanks
Imen
snkparty1
Associate III

Thank you, I will check this document