Page 1 of 1

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

Posted: Tue Aug 11, 2020 7:57 am
by abanik
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?