2021-03-08 09:08 PM
Hello,
does anyone have experience with using SDMMC1 (1 bit-mode) and FatFs with enabled dma template on a STM32H730VBTx controller?
Without dma template I got it working (but it is requiered for FreeRtos)
I am using CubeMx in Version 6.1.1
Sorry, I am not able to upload scrennshots (?!)
Settings:
FatFs:
· SDMMC1
· Use dma template enabled
SDMMC1
· SD 1 bit
MDMA
· Channel 1
· Transfer 1
· MDMA request: SDMMC1 data end
Thats it.
Result is: Returns FR_DISK_ERR from following line
FRESULT fresult = f_mount(&FatFs, "0:", 1);
Please let me know if further information is needed
Regards Marcus
2021-03-12 01:50 AM
Hi @Marcus Brönstrup ,
2 comments but not really the solution:
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2021-03-12 08:01 AM
Should be able to attach .ZIP of things, not sure why the Mountain/Sun icon wouldn't let you in-line images
H7 is going to need to have caching managed appropriately, and memory within the scope of the DMA unit.
For CubeMX fixes on the ST side you'd be generally well advised to attach the .IOC file
2021-03-12 08:23 AM
Indeed, for DMA usage please consider this FAQ article: DMA is not working on STM32H7 devices.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2021-03-15 01:29 AM
2021-05-25 01:24 PM
Hello, was there any solution on this issue? Or can we conclude that DMA with STM32H7 and SDMMC is broken?
I experience exactly the same problem, with CubeIde 1.6.0.
2021-05-25 01:37 PM
>>Or can we conclude that DMA with STM32H7 and SDMMC is broken?
HW works fine, but it is complex and unforgiving.