Hangs in SDIO after update CumeMX
Hello.
After updating CubeMX to the latest version, the microSD card is no longer formatted
Mounting, creating files and writing to them is normal.
When calling a function:
f_mkfs("", FM_FAT32, 0, work, sizeof work);Hangs up in the HAL_SD_WriteBlocks function, in this loop:
while(!__HAL_SD_GET_FLAG(hsd, SDIO_FLAG_TXUNDERR | SDIO_FLAG_DCRCFAIL | SDIO_FLAG_DTIMEOUT | SDIO_FLAG_DATAEND | SDIO_FLAG_STBITERR))I tried different MicroSD, the result is the same everywhere.
And before that, everything worked fine.
Perhaps the reason is due to the fact that in CubeMX in the FATFS settings the BSP item (Detect_SDIO) appeared