Unable to upload code: Invalid head of packet (0x00)

rafaelvf
Posts: 3
Joined: Tue Sep 07, 2021 1:49 pm

Unable to upload code: Invalid head of packet (0x00)

Postby rafaelvf » Tue Sep 07, 2021 2:20 pm

Hi,

I'm using two LilyGO T-Beam v1.1 boards. After some time of working correctly, in one of them I cannot upload code.

The Arduino IDE is able to connect whith this board and retrieve its characteristics. Usually the process of writting code starts but never ends properly. Every time I get the following error:
A fatal error occurred: Invalid head of packet (0x00)
A fatal error occurred: Invalid head of packet (0x00)
You can see an more complete output at the end of this post. In this case, I was trying to upload the code of the Blink example. Longer codes never reach the 100% of writing.

I tried reducing flash frequency and upload speed. Also, I tried with different USB ports, cables and PCs. Nothing works for me.

Any help will be appreciated.

Best regards,

Rafael
------------------------------------------------------------------------------------------
esptool.py v3.0-dev
Serial port COM8
Connecting.....
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:f2:47:63:24
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 2849.4 kbit/s)...
Hash of data verified.
Compressed 17120 bytes to 11164...
Writing at 0x00001000... (100 %)
Wrote 17120 bytes (11164 compressed) at 0x00001000 in 1.0 seconds (effective 138.9 kbit/s)...

A fatal error occurred: Invalid head of packet (0x00)
A fatal error occurred: Invalid head of packet (0x00)

Who is online

Users browsing this forum: No registered users and 109 guests