2017-03-04 10:29 PM
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 #stm32f12017-03-06 04:22 AM
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-