• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Tried to upload ESP32 No success

Q&A Forum › Category: ESP32 › Tried to upload ESP32 No success
0 Vote Up Vote Down
froehlich asked 5 years ago

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
2 Answers
0 Vote Up Vote Down
froehlich answered 5 years ago

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.

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

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:

  • [SOLVED] Failed to connect to ESP32: Timed out waiting for packet header
  • https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.