Make sure your verified that the cable and the USB-Port are working.
This is the error this page is about:
Serial port /dev/ttyUSB0
Connecting......
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail.
Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00050fff...
Compressed 18992 bytes to 13112...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
Fixes
- I found a weird workaround: It works completely fine when I don't connect anything to GPIO 12 of the ESP32. Have no clue why, but thats how it works apparently.
There is the following comment: Pin 12 MTDI: If driven High, flash voltage (VDD_SDIO) is 1.8V not default 3.3V. Has internal pull-down, so unconnected = Low = 3.3V. May prevent flashing and/or booting if 3.3V flash is used and this pin is pulled high, causing the flash to brownout. See the datasheet for more details.
- A MacBook user also reported, that they could make it work by simply setting the baudrate to 115200.
- Another person reported this fix: "The problem for me was a bug in esptool's stub for C3. Using --no-stub slowed down things, but solved the problem".