2018-01-12 11:49 AM
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:
Screenshot from STM32H7- NUCLEO cube configuration:
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 #dmaSolved! Go to Solution.
2018-07-04 12:14 PM
Hi all,
STM32H743 SDMMC host controller has an internal DMA.
Best regards,
Abdelhamid.
2018-01-13 02:53 PM
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.
2018-01-13 04:58 PM
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
2018-01-14 02:58 AM
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:
2018-01-15 12:33 PM
Thanks for the help!
Did you manage to use an SD card using SDMMC1 without any DMA on stm32H7 nucleo?
2018-01-15 01:28 PM
No.
I gave up with STM32H743, switched back to F767/769 and waiting for new libraries.
2018-01-15 01:48 PM
Oh, I understand the frustration.
2018-07-04 12:14 PM
Hi all,
STM32H743 SDMMC host controller has an internal DMA.
Best regards,
Abdelhamid.
2022-01-03 02:27 AM
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
2022-01-04 12:48 AM
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.