AnsweredAssumed Answered

[BUG Report STM32_Cube_L4_1.5.1]SDMMC TX/TR DMA Dont work

Question asked by gang on Sep 19, 2016
Latest reply on Jan 13, 2017 by merkulov.serafim
if one use sdmmc DMA for Tx AND Rx it will hang in HAL_SD_WriteBlocks_DMA or
in HAL_SD_ReadBlocks_DMA in the modul stm32l4xx_hal_sd.c The reason is the DMA is enable in the first call of one of the routines and is never disabled. By calling the other routine, CCR dont accept any changes because the DMA was enabled. The configuration fails but register are not checked.
I changed HAL_SD_WriteBlocks_DMA and in HAL_SD_ReadBlocks_DMA so, that the DMA is first disabled and reenabled after the configuration. Now it works perfect.

Outcomes