AnsweredAssumed Answered

Avoid "SD card transfer complete wait" in case of DMA

Question asked by dhavalv on Jun 7, 2016
Latest reply on Jun 7, 2016 by Clive One
Hi,

I am working on STM32L4xx MCU. I have connected MicroSD card of 8GB size over SDMMC interface. And I am using DMA for write to the SD card.

Now, DMA is used to keep the MCU free during that time of data transfer. But what I saw is, after initiating the DMA for data transfer the BSP code is waiting for transfer complete of DMA by calling "HAL_SD_CheckWriteOperation()" function, which will keep MCU busy. And thus it defeats the purpose of DMA!!

Is this wait is really required? Can't we simply initiate the DMA transfer and avoid this wait?

Please help me to understand this.

Thanks,
Dhaval

Outcomes