Is SD card initialization required just once or every time the ESP32 resets?

abanik
Posts: 4
Joined: Tue Aug 11, 2020 7:45 am

Is SD card initialization required just once or every time the ESP32 resets?

Postby abanik » Tue Aug 11, 2020 7:57 am

Hello,
I am using SD card with ESP32 dev board. It is working fine with library but my concern is something else. Due to some bug the board restarts(watchdog or something), the code reattempts to initialize the SD card again. Is it correct to initialize it again since it has been done once. Also is there any way to know if SD card has been previously initialized or not.
Since now there is no such check implemented, the SD card is reinitialized sometimes it gives output as SD card initialization failed but normal file read/write operation is conducted successfully.
Can someone explain me the Reason for such behavior?

Who is online

Users browsing this forum: No registered users and 63 guests