f_mount fails using STM32L4 w/ SDMMC
I'm having a lot of difficulty getting FatFS working with SDMMC on my STM32L476 (RG-Nucleo) board. I'm working from code generated by CubeMX and have followed a number of forum posts suggesting alterations to get SDMMC working -- for instance,
https://community.st.com/message/203639-sdmmc-on-stm32-l476-l4
. Currently I'm getting an infinite loop when calling f_mount which I can trace back tostm32l4xx_hal_sd.c:
while(!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DBCKEND)) {This loop goes on infinitely -- it seems none of these flags are being set? What are some likely causes of this problem?
#hal #sdmmc #f_mount #stm32l4+ #fatfs