cancel
Showing results for 
Search instead for 
Did you mean: 

Cube F4 V1.16.0 DMA on SD card broken?

greg239955_stm1
Associate II
Posted on July 07, 2017 at 02:12

I'm using Cube generator app V4.21.0 and F4 FW V1.16.0 on a 429II.

If I enable DMA transfers for the SD card, it hangs in the SD driver and won't even allow the card to be mounted.

Rolling back to older versions of stm32f4xx_ll_sdmmc and stm32f4xx_hal_sd works perfectly.

Anybody else come across this?

#stm32f4 #dma #sd-card
1 REPLY 1
Allan Bazinet
Associate
Posted on July 21, 2017 at 17:35

In recent versions of the HAL, the HSE timeout in the HAL configuration header has been decreased from 5s to 100ms. With our hardware, we found 100ms to be inadequate; it'd fail during the mount process. I'd actually guess our HSE stabilizing within 100ms not to be the issue; it's probably just the delay assisting with some other startup race. Something you might try, anyway.