Esp32S3 : esp_vfs_fat_sdmmc_mount() function. Is there an error code saying that the external memory is broken ?
Posted: Mon Jul 07, 2025 1:23 pm
Good afternoon,
I am using an Esp32S3 with an external SDCard.
I manage to mount a FileSystem on the SDCard using the esp_vfs_fat_sdmmc_mount() function.
Using the error code, I can know if the FileSystem is mounted or not, but I would like to know if the FileSystem has not been mounted
because there was no SDCard or fi the FileSystem has not been mounted because the SDCard was broken (Or something like that).
Do you know if the error code sent by the function can tell the difference between these two cases ?
Is there an error code saying that the SDCard is broken and another one saying that the SDCard is not present ?
Best regards,
Thomas TRUILHE
I am using an Esp32S3 with an external SDCard.
I manage to mount a FileSystem on the SDCard using the esp_vfs_fat_sdmmc_mount() function.
Using the error code, I can know if the FileSystem is mounted or not, but I would like to know if the FileSystem has not been mounted
because there was no SDCard or fi the FileSystem has not been mounted because the SDCard was broken (Or something like that).
Do you know if the error code sent by the function can tell the difference between these two cases ?
Is there an error code saying that the SDCard is broken and another one saying that the SDCard is not present ?
Best regards,
Thomas TRUILHE