Question
DMA with Storage_write_FS ?
Posted on March 05, 2017 at 07:29
Hello everybody,
How can I use DMA for this HAL_SD_WriteBlocks,
I tried with HAL_SD_WriteBlocks_DMA, it doesn't work,
Any clues ?
Thanks
======================
int8_t STORAGE_Write_FS (uint8_t lun,
uint8_t *buf, uint32_t blk_addr, uint16_t blk_len){ /* USER CODE BEGIN 7 */ HAL_SD_WriteBlocks(&hsd, (uint32_t*)buf, (uint64_t)(blk_addr * STORAGE_BLK_SIZ), STORAGE_BLK_SIZ, blk_len); printf('STORAGE_Write_FS function DMA!\n'); return (USBD_OK);#usb-fs #dma #sdcard #stm32f1