cancel
Showing results for 
Search instead for 
Did you mean: 

SD Card remove and reinsert

IlConte
Associate III
fresult1 = f_mount(&myFATAFS, SDPath, 1)
while(FR_OK != fresult1){

If I remove and reinsert the SD card the f_mount return FR_DISK_ERR instead FR_OK.

If I restart the project all is OK.

I have the SD_CARD present pin, what can i do when the card is disconnect and i insert it.

3 REPLIES 3
KDJEM.1
ST Employee

Hello @IlConte​ ,

A similar question is already asked here. And the best answer is already provided by @Tim Russell​ . 

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Kaouthar

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.

I have try the TIm Russel solution, but i have the same FR_DISK_ERR error

Hello Kaouthar ( @KDJEM.1 ),

I tried to follow your link to the thread with Tim Russel's answer, but I get to a page which says "Access denied".  Was that thread moved?  Is that information available in somewhere else (app note, FAQ) ?

I too have encountered the issue with re-inserting an SD card.

Cheers,

- Nick