cancel
Showing results for 
Search instead for 
Did you mean: 

DMA with Storage_write_FS ?

antonius
Senior
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
1 REPLY 1
Nesrine M_O
Lead II
Posted on March 06, 2017 at 13:22

Hi

H.Rick

,

How can I use DMA for this HAL_SD_WriteBlocks,

I tried with HAL_SD_WriteBlocks_DMA, it doesn't work,

Any clues ?

Please refer toSD demo on the BSP application it shows how to write and read in SD card using DMA.

STM32Cube_FW_F7_V1.6.0\Projects\STM32F769I-Discovery\Examples\BSP

-Nesrine-