How to use HAL_SD_WriteBlocks_DMA
I'm working on a project that requires USB_OTG_FS and USB_DEVICE as MSC; I've managed to hook up the SD card to the USB_DEVICE layer and the HAL_SD_ReadBlocks works fine and I can even play back music from the SD Card via the MSC interface. However the HAL_SD_WriteBlocks gives me a buffer underrun error; and the HAL_SD_WriteBlocks_DMA would work, but it corrupts files; I assume that's cuz I would have to wait a little for the transfer to complete:
My question is: how would I go about doing that?
The SDIO is in 4 bit Wide Bus mode and the microcontroller is an STM32F405RG
Thanks!
