Skip to main content
Visitor 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.

    This topic has been closed for replies.

    1 reply

    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

    IlConteAuthor
    Visitor II
    June 20, 2023

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