STM32L462 + CMSIS V2 + FATFS + SDMMC with DMA not Working
Hi,
I am working on interfacing the SD card with the following requirement :
CMSIS V2 + FATFS + SDMMC with DMA on STM32L462.
I have configured the project in CubeMX Version 1.3.0. The CMSIS V2 with FREERTOS has been selected from the CUBEMX configuration and using FATFS system for handling data on SD card.
The SDMMC has been configures with DMA having two separate channels for Rx and Tx.
The f_mkfs is working but after that when i call f_mount it is failing.
Following are my observations:
when the f_mount function is called, as part of this functionality the FATFS reads the data from the SD card. Here the function BSP_SD_ReadBlocks_DMA() is called. In the further debugging it is observed that the read data command has been sent to the sd card by sdmmc and upon response from sd card the read data has been stored into the FIFO of the sdmmc peripheral. But the configured DMA is not at all copying the data from sdmmc FIFO to the buffer and since the FATFS is not getting the data on timeout it is resulting in error.
Played with multiple configurations of DMA but no Luck.
Please help me out since its been long days i am trying to debug and figure out the issue.
Many thanks in advance.
