• 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

ESP32 can’t upload via Arduino

Q&A Forum › Category: ESP32 › ESP32 can’t upload via Arduino
0 Vote Up Vote Down
jimmy.andrianto asked 5 years ago

Hi,

my lesson is stuck on lesson 3 (https://rntlab.com/module-1/installing-the-esp32-board-in-arduino-ide-windows-mac-os-x-and-linux/). I am using Windows 8.1, Arduino 1.8.10, dev board ESP32 Devkit v1. I Has select the board to DOIT ESP32 v1 (on courses is no information about baud rate, but i has try to use 921600 and 115200 but still error). I choose COM port number and i already check at device manager too, com port number is correct.

And then open the WifiScan and upload to board. Here the message error:

Arduino: 1.8.10 (Windows 8.1), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"

Sketch uses 623662 bytes (47%) of program storage space. Maximum is 1310720 bytes.

Global variables use 38744 bytes (11%) of dynamic memory, leaving 288936 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port COM5

Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch
_
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

What i must do?

3 Answers
0 Vote Up Vote Down
Best Answer
Rui Santos Staff answered 5 years ago

Hello Jimmy, can you try this solution by holding the BOOT button in your board while your code is uploading?

  • [SOLVED] Failed to connect to ESP32: Timed out waiting for packet header

It might also be a good idea to try a different USB cable like DK suggested, but I think in your case a capacitor is missing (you can either hold the BOOT button during upload or solder a capacitor).
Let me know your results!

0 Vote Up Vote Down
DK answered 5 years ago

Hi
 
try changing you Cable, not all USB Change are the Same ..
https://www.amazon.co.uk/gp/product/B072J1BSV6/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
 

0 Vote Up Vote Down
jimmy.andrianto answered 5 years ago

Hi DK, 
Thanks for your answer. The cable is not issue
Hi Rui,
Thanks for your answer, its work. Just need hold BOOT button when connecting to board process. 
Many thanks to all of you 😀

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.