I tried to program ESP32 DOIT V!. I have 2.the second freshly opened from static package. Both failed to upload the blink program.
I had verbose and cut and pasted the output. Critical text is at bottom. Plugged and unplug-ed ESP32 while in device manager to confirm Com port 5. I also tried other speeds besides 921600.
Arduino: 1.8.10 (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None" C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\froeh\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\froeh\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\froeh\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10810 -build-path C:\Users\froeh\AppData\Local\Temp\arduino_build_819495 -warnings=none -build-cache esptool.py v2.6 Serial port COM5 Connecting........_____....._____....._____....._____....._____....._____....._____ A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Reading further in module a solution was posted.
That’s it. Your ESP32 should have the new sketch running. With those boards/with that setup, after uploading a new sketch, press the “ENABLE” button to restart the ESP32 and run the new uploaded sketch.
You’ll also have to repeat that button sequence every time you want to upload a new sketch.
To be honest we’re not sure why that happens with the newer boards. We don’t have any ESP32 board with that behavior. We think it’s something different with in your specific ESP32 board or the Arduino IDE fails to send the right command sequence to put the ESP32 board automatically in flashing/uploading mode.
I will try installing IDE in another computer and see if the upload works without holding boot button.
Unfortunately I don’t think that will fix that problem. some of those boards have a capacitor missing that causes the board to require holding the BOOT button to upload a new sketch.
Soldering a capacitor or using it link this on a breadboard will fix your issue: