cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 nucleo - DMA tab in cubeMX configuration of SDMMC

Marina Brener
Associate III
Posted on January 12, 2018 at 20:49

Hello,

I am trying to use SDMMC/SDIO with DMA + FATFS. 

When creating project on stm32f7, I can find and configure DMA streams for the sdmmc.

I am working with cubeMX version 4.23.

Screenshot from STM32F7 - DISCO cube configuration:

0690X00000609JbQAI.png

Screenshot from STM32H7- NUCLEO cube configuration:

0690X00000609LqQAI.png

Does the cube missing a DMA tab in SDMMC configuration? Maybe it defined in another place in the cube?

Best regards,

Marina

#fatfs-sdio #cubemx-4.23 #dma
1 ACCEPTED SOLUTION

Accepted Solutions
Abdelhamid GHITH
ST Employee
Posted on July 04, 2018 at 21:14

Hi all,

STM32H743 SDMMC host controller has an internal DMA.

Best regards,

Abdelhamid.

View solution in original post

9 REPLIES 9
Joerg Wagner
Senior III
Posted on January 13, 2018 at 23:53

Hi Marina.

The basic DMA is not more available for SDMMC1, just for SDMMC2 only.

To use the DMA feature you have to work with MDMA. It's in the same D1 domain. 

Posted on January 14, 2018 at 00:58

Hi Joerg,

Thanks for the response. 

Do you know why it is not available? 

If I should work with the MDMA, can it be defined to work with the SDMMC via the cube?

Marina

Posted on January 14, 2018 at 10:58

0690X00000609NNQAY.png

On page 100 in the Reference Manual you can see the interconnects.

Only SDMMC2 resides in the D2 domain.

You can use MDMA in CubeMX:

0690X00000609KoQAI.png
Posted on January 15, 2018 at 20:33

Thanks for the help!

Did you manage to use an SD card using SDMMC1 without any DMA on stm32H7 nucleo?

Posted on January 15, 2018 at 21:28

No.

I gave up with STM32H743, switched back to F767/769 and waiting for new libraries.

Posted on January 15, 2018 at 21:48

Oh, I understand the frustration.

Abdelhamid GHITH
ST Employee
Posted on July 04, 2018 at 21:14

Hi all,

STM32H743 SDMMC host controller has an internal DMA.

Best regards,

Abdelhamid.

Reza1
Associate II

Hi,

I have faced similar issues in 2022. I'm using STM32H743II and Generating its code with STM32CubeMX version 6.3.0 and FatFs library.

When I touch the screen repetitively, "f_open" returns DISK_ERROR. I have seen this problem when have used STM32F7 and I have resolved it by confining micro SD with DMA. Now I want to run micro SD with DMA in STM32H743II but I can't reach the appropriate config in Cube. I have read about IDMA and MDMA but can't run them. I don't know how config IDMA or MDMA with SDMMC.

Mr Abdelhamid please describe how to use internal DMA? How i generate a code using BSP_SD_ReadBlocks_DMA and works well?

Anybody can help me, please?

Thanks

APate.8
Associate II

HI I am having the same issue. Can anyone help to configure cubemax for BSP_SD_ReadBlocks_DMA ?

I am using SDMMC2 interface with 1bit SD card. Generated code with CubeMax but I dont know how to link DMA with BSP_SD_ReadBlocks_DMA function.

From Manual it says SDMMC2 is in domain 2, so DMA1 and 2 should be available. however, I can not find any channel from SDMMC2 data transfer in cubeMx.

any help will be appreciated.