SDIO+DMA+FATFS for STM32L476RG (CubeMX 4.25.0+MCU pack 1.11.0)
Dear friends,
I have an issue with uSD reading and writing in DMA mode (How ever I am able to read and write data on SD card when dma template is off). I used CubeMX to configure♯
but it did not work for me ''out of the box''.My CubeMX version is 4.25.0 and L4 MCU package is 1.11.0.
Could you point out what I am doing wrong in configuration or in my code or if it is CubeMX issue, could you please advice me how to solve it?
I found some topics related to SDIO and DMA configuration and tried to implement them :https://community.st.com/0D50X00009XkVtKSAV
?https://community.st.com/0D50X00009Xkf5gSAB
?https://community.st.com/0D50X00009XkYIGSA3
?Below you find screen shots with my settings and my SW4STM32 project including CubeMX file.


My MCU setup:


My CubeMX configuration:
1) Clock

2)Clock factor

3)NVIC

4)DMA

5)Pin configuration

6)FatFS (sector size)

7)DMA template enabled
#fatfs-sdio #stm32l476 #sdio-dma #sd-card #sdio+dma+fatfs #stm32l4-sdio