Skip to main content
Marina Brener
Associate III
January 12, 2018
Solved

STM32H7 nucleo - DMA tab in cubeMX configuration of SDMMC

  • January 12, 2018
  • 9 replies
  • 2997 views
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
This topic has been closed for replies.
Best answer by Abdelhamid GHITH
Posted on July 04, 2018 at 21:14

Hi all,

STM32H743 SDMMC host controller has an internal DMA.

Best regards,

Abdelhamid.

9 replies

Joerg Wagner
Senior III
January 13, 2018
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. 

Marina Brener
Associate III
January 14, 2018
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

Joerg Wagner
Senior III
January 14, 2018
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
Abdelhamid GHITH
Abdelhamid GHITHBest answer
ST Employee
July 4, 2018
Posted on July 04, 2018 at 21:14

Hi all,

STM32H743 SDMMC host controller has an internal DMA.

Best regards,

Abdelhamid.

Reza1
Associate
January 3, 2022

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
January 4, 2022

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.