0

Every time i try to upload a code or erase flash it gets me "A fatal error occurred: Timed out waiting for packet content"

C:\esptool>python esptool.py --port com4 erase_flash esptool.py v3.0-dev Serial port com4

Connecting........_

Detecting chip type... ESP32

Chip is ESP32D0WDQ6 (revision 1)

Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None

Crystal is 40MHz

MAC: 24:6f:28:a2:5a:7c

Uploading stub...

Running stub...

Stub running...

Erasing flash (this may take a while)...

A fatal error occurred: Timed out waiting for packet content

  • Please [read here](https://www.google.com/search?q=A+fatal+error+occurred%3A+Timed+out+waiting+for+packet+content+python+esptool) and modify your question with more details and what you tried to solve the problem – Joe May 09 '20 at 06:51

2 Answers2

0

I just encountered a similar problem. Flashing new code would fail. When I ran idf.py monitor, it would continually reboot in a pretty tight loop. My solution was to erase the flash using:

idf.py erase_flash -p com21
Dharman
  • 30,962
  • 25
  • 85
  • 135
paulelong
  • 91
  • 2
0

is your USB cable a charger cable only? This happens a lot. Charger cables look almost the same as charge/data cables. Though the heads look the same, sometimes a charger cable is slightly thinner b/c it only has two conductors in the jacket. Charger/Data cables however have at least 4 wires, Data +, Data -, Power and Ground. Test your cable with another data device, or try a slightly thicker cable.

Quinn Carver
  • 587
  • 7
  • 14