STM32H745/755 SDMMC & IDMA Configuration for Setup and Best Practices
I'm currently working on a project involving the STM32H755ZI and setting up SDMMC1 for file operations using FatFs. While configuring the SDMMC interface, I noticed that CubeMX provides the option to enable IDMA (Internal DMA), but there's very little guidance available on how to correctly implement and utilize it, especially in conjunction with FreeRTOS and FatFs.
My questions:
How exactly should IDMA be enabled and configured in CubeMX/CubeIDE?
Aside from enabling "Use DMA Template" and selecting IDMA for SDMMC, are there specific buffer alignment or cache management requirements (e.g., ALIGN_32BYTES(...) or MPU settings)?Is IDMA recommended or sufficient for use with FreeRTOS-based projects using FatFs on SD cards, or should MDMA be preferred in more demanding scenarios?
Could anyone share a working example or reference project using STM32H7 + SDMMC1 + IDMA + FatFs (ideally FreeRTOS-compatible)?
While AN5200 and other app notes mention DMA templates and performance guidance, they don’t fully elaborate on IDMA-specific configuration best practices.
Any insights, example projects, or tips on using IDMA correctly would be greatly appreciated!
Thanks in advance!
