Skip to main content
IlConte
Associate II
June 6, 2023
Question

SD Card remove and reinsert

  • June 6, 2023
  • 1 reply
  • 2347 views
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.

1 reply

KDJEM.1
Technical Moderator
June 12, 2023

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.
IlConte
IlConteAuthor
Associate II
June 20, 2023

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