Has anyone a working 1-bit SDIO FATFS example with STM32f207VE?
I would like to use SDIO with 1 bit mode with FatFS. I use STM32F207VE MCU. The SD card is a 16 GB SanDisk.
Version of STM32CubeMX is 6.1.1, firmware version is STM32Cube FW_F2 V1.9.2.
FATFS R0.11 version used.
When I generate SDIO with 1 bit mode it is not working. Function 'f_open' is returning with error code: 12 which is 'FR_NOT_ENABLED' and f_read return with error code 9, which is 'FR_INVALID_OBJECT'
// code
while(1)
{
retSD=f_mount(&SDFatFS, SDPath, 1);
HAL_Delay(20);
if(resSD == 0)
{
HAL_Delay(20);
retSD = f_open(&SDFile, "HL.txt", FA_READ);
HAL_Delay(200);
retSD = f_read(&SDFile, array,sizeof(array),bytesread);
HAL_Delay(200);
f_close(&SDFile);
}
}
help me how can I solve this.
