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.

2 REPLIES 2
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