cancel
Showing results for 
Search instead for 
Did you mean: 

SDIO FATFS FR_NOT_READY - fails to mount SD card

bog201
Associate II

Hello,

I have a NUCLEO-F767ZI I am trying to integrate an SD card with for data storage. The SD card is a Kingston CANVAS Select Plus 64GB in ExFAT format.

I am connecting it to the NUCLEO board through an Adafruit SD card module which has pullup resistors on all lines, including the detect pin, and I am using the internal GPIO pullup resistors too for D0, CMD and SD_DET to make sure the communication is uninterrupted. Below you can see the FATFS configuration fatfs_config1.pngfatfs_config2.png

 

printf("Mounting filesystem...\r\n\n");

FR_Status = f_mount(&FatFs, "", 1);

if (FR_Status != FR_OK)

{

printf("Error mounting SD card! Code: %d\r\n\n", FR_Status);

break;

}

printf("SD card mounted successfully\r\n\n");

 

 

FR_Status returns FR_NOT_READY (3 in console). 

The hardware configuration is correct as I can read the capacity and some other data from the SD card, but I cannot access the card itself.

Does anyone have any suggestions?

 

11 REPLIES 11

I checked the SD cards in File Explorer on Windows and they are formatted in ExFAT. 

Saket_Om
ST Employee

Hello @bog201 

Did you attempt to follow the example below and find inspiration from it?

STM32CubeF7/Projects/STM32F769I_EVAL/Applications/FatFs/FatFs_uSD at master · STMicroelectronics/STM32CubeF7 · GitHub

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om