Question
Avoid ''SD card transfer complete wait'' in case of DMA
Posted on June 07, 2016 at 08:02
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 #sdmmc1 #microsd #dma #stm32