SDIO microSD card f_mount returns FR_NOT_READY
Hi, I have STM32F407VET6 board and trying to use FATFS and SDIO card slot, but f_mount returns FR_NOT_READY.
My project clock configuration:
My project SDIO configuration:
SD card: Kingston 16GB microSDHC class 10 I1 SDCS.
I have tried to debug the f_mount and see where and what error is returned deeper. The error occurs in "HAL_SD_ConfigWideBusOperation" where "SD_HandleTypeDef" getsdifferent "ErrorCode":
0x00000002 // SDMMC_ERROR_DATA_CRC_FAIL Data block sent/received (CRC check failed)
0x00000006 // SDMMC_ERROR_CMD_RSP_TIMEOUT Command response timeout + above error
0x00001004 // SDMMC_ERROR_CMD_RSP_TIMEOUT + SDMMC_ERROR_COM_CRC_FAILED
I have read that SDIO should be configured at lower speeds so tried to set:
hsd.Init.ClockDiv = 0; // = 3, 4, 200, 255But still the same.
Any ideas what is the issue and how to solve this?
