• 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

ESP-WROOM-32 and a ESP 32 Wemos WIFi / Bluetooth battery models Arduino IDE 2.3.6. upload error

Q&A Forum › Category: ESP32 › ESP-WROOM-32 and a ESP 32 Wemos WIFi / Bluetooth battery models Arduino IDE 2.3.6. upload error
0 Vote Up Vote Down
David Fenner asked 3 weeks ago

Hi all,
I would be extremely grateful if someone could help me resolve the following issue: –
Around the begin of the year I was able to programming 3x  ESP-WROOM-32 and a ESP 32 Wemos WIFi / Bluetooth battery models with no problems when uploading Sketch’s to the representative devices using the Arduino IDE
(I am currently been using the Arduino IDE 2.3.6. to program ESP32 C6 mini models with no problems.)
Yesterday, I tried to upload Sketch using my ESP-WROOM-32 and Wemos wi Bluetooth battery models using Arduino IDE 2.3.6
However, I am confronted with the following error on the WROOM and Wemos models 

 A fatal error occurred: Invalid head of packet (0x00): Possible serial noise or corruption.
Or A fatal error occurred: Invalid head of packet (0x01): Possible serial noise or corruption.
Failed uploading: uploading error: exit status 2
Background
Within the IDE I have the following installed “esp32 by Espressif Systems version 3.3.0”
I have the respective ESP-WROOM-32 development board selected or Wemos WIFi / Bluetooth battery boards in the IDE
Windows device manager states I am using Silicon labs CP210x USB to UART bridge (COM3)
I have a CP2102 chip driver chip fitted to all my boards. windows states I am using version.2.0.167
The Wemos module requires no manual boot to upload
For the ESP-WROOM-32 modules I carry out the following manual operation when the following screen prompt: –
“Sketch uses 294883 bytes (22%) of program storage space. Maximum is 1310720 bytes.
 Global variables use 20688 bytes (6%) of dynamic memory, leaving 306992 bytes for local variables. Maximum is 327680 bytes.
 esptool v5.0.0
  Serial port COM3:


 Connecting….”
 

When I see Connecting….
 I press the boot button on the ESP-WROOM-32 module and release it
Any help identifying the issue will be greatly appreciated.
Best regards 

7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

Hi.
That seems to be an issue with the boards or with the USB ports.
Maybe the boards are busy running a program that prevents them to go into bootloader mode?
You can try to erase flash in one of those boards: https://randomnerdtutorials.com/esp32-erase-flash-memory/
And then, try to upload code again.
 
Let me know if you succeed.
 
Regards,
Sara

0 Vote Up Vote Down
David Fenner answered 3 weeks ago

Hi Sara,
Thank you for the fast reply.
Taking the points you raised about   “an issue with the boards or with the USB ports.”
I have now tried a new board that has not been programmed and installed Arduino IDE 2.3.6. onto a different laptop before embarking into your erase flash idea.
Undertaking my additional steps above still results in the same error so it does not look like it’s a board or USB issue.
I have read that selecting the wrong board in the IDE will also produce the same error have you seen this as well?
 Though on saying that I can not see I have done this.
Best regards

0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

Hi again.
What board are you selecting?

0 Vote Up Vote Down
David Fenner answered 3 weeks ago

Sara,
For the ESP-WROOM-32 development board I am using  the ESP32-WROOM-DA Modula  if I was using the  Wemos board with the push-in 18650 battery I use Wemos WIFi / Bluetooth battery board in the IDE.
So have you experienced  this error before in the respect of incorrect board selection as I  cant see what other board to select in the IDE?
Best Regards
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 weeks ago

Hi.
No. I don’t think I had that issue…
You can try to select ESP32 DEv Module. It usually works for most boards.
But, I’m not sure exactly if that’s what’s causing the issue.
 
Meanwhile, I found this discussion: https://www.reddit.com/r/esp32/comments/1irv78s/failed_to_connect_to_esp32_invalid_head_of_packet/ 
But, I don’t think this will solve the problem.
 
Do you have any components connected to your board? If so, disconnect them all.
 
Regards,
Sara

0 Vote Up Vote Down
David Fenner answered 2 weeks ago

Hi Sara,
Thank you for the feedback your link produces a “Internal Server Error”
I have tracked down my issue to the Arduino IDE 2.3.6. using “esp32 by Espressif Systems version 3.3.0” If I install version 3.2.1 at the moment all is well. I will have more time next week to do more extensive testing.

0 Vote Up Vote Down
Sara Santos Staff answered 2 weeks ago

Ok.
Thanks for letting me know.
Regards,
Sara

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

  • [eBook Updated] Learn LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 2025
  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 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.