f_mount() returns FA_DISK_ERR
问题 I have made few changes in my source code after suggestion form everyone.For connecting FATFS API with SPI interface i have followed this code.. https://github.com/eziya/STM32_SPI_SDCARD/blob/master/Src/fatfs_sd.c and changed my user_diskio.c accordingly. After doing all those things then also my SD Card returns FA_DISK_ERROR . I have changed SD Card slot as well as SD Card. But nothing Changed. My user_diskio.c look like this: #include <string.h> #include "ff_gen_drv.h" #include "fatfs_sd.h"