Closed qbox4u closed 2 years ago
Hi @qbox4u. Thanks for your report.
The 3rd party ESP32 boards platform comes with its own bundled version of the SD and SPI libraries, which have been modified specifically for use with the ESP32 microcontroller. That library code is hosted in the repository of that boards platform:
https://github.com/espressif/arduino-esp32/tree/master/libraries/SD
This repository is for the official Arduino SD library, which is not used when compiling for an ESP32 board. So I think there is a good chance your issue is not relevant to the code hosted in this repository and so I will close it as off topic.
If you finally do determine that the issue is present in the code of this repository in addition to that of the ESP32-specific variant of the library, and also affects the boards this library is used by, please comment here and I'll reopen.
If you need assistance with your project, feel free to post on the Arduino Forum. I'm sure we'll be able to help you out over there:
The ESP32-CAM has a SD-micro slot on the main board. and is mounted on a ESP32-CAM-MB board for providing serial communication. (eg https://universal-solder.ca/wp-content/uploads/2021/03/5083_b61d93cb-2cb4-4503-b537-ca77679cc7ad0.jpg)
The SD is blocking a new reload of a Sketch after the SD-micro has been initialized.
After the following commands the board can't reload a new IDE sketch
Pressing the reset-button of the ESP32-CAM board does not solve the issue as the SD-micro card still blocks a new sketch upload. The only way to reload a new sketch is to remove the SD-micro (basically a power down) after which the MISO signal of the SD card is disabled (high impedance again).....