• 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

failed to connect to ESP32 Invalid head of packet (0x2E)

Q&A Forum › Category: ESP32 › failed to connect to ESP32 Invalid head of packet (0x2E)
0 Vote Up Vote Down
Arthur Spurr asked 6 years ago

Just ‘moved’ from ESP8266 board to an ESP32 and was getting the above error when uploading code. I discovered the only way I could upload code to the ESP32 was by pressing the BOOT button during upload. Is this normal or is there a way to avoid doing this when uploading code.

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

Hello Arthur, some boards have that “problem”.

Here’s how you can solve it permanently: https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/

Failed to connect to ESP32: Timed out waiting for packet header

0 Vote Up Vote Down
Arthur Spurr answered 6 years ago

Thanks for that, just downloaded datasheet for the ESP32, an amazing device. Really enjoying your courses and books.

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

You’re welcome! Just try the capacitor on a breadboard to test if it fixes the error upload permanently (let me know your results).

The ESP32 is amazing, once you try the ESP32 and see the full potencial, it’s hard to go back.

Thanks for your feedback!

0 Vote Up Vote Down
Arthur Spurr answered 6 years ago

Delay in replying as the ESP32 behaved perfectly after the initial problem and only failed to upload code about 1 in 10 attempts. So I have fitted the 1u and will do some repeat tests when I get chance, thanks again.

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

Ok! However, that sometimes happens (the ESP is busy running some old code, so it fails 1/20 uploads for me). Let me know your results

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.