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
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
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
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
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
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.