AnsweredAssumed Answered

DMA with Storage_write_FS ?

Question asked by H.Rick on Mar 5, 2017
Latest reply on Mar 6, 2017 by Nesrine M

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);

Outcomes