PlatformIO Community

Upload now fails to ESP32

I’ve been successfully uploading Arduino and ESP-IDF builds to an ESP32. However, these now fail to load with the following messaging:

CURRENT: upload_protocol = esptool
Looking for upload port…
Auto-detected: COM3
Uploading .pio\build\esp32doit-devkit-v1\firmware.bin
esptool.py v3.1
Serial port COM3
Connecting…_
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:cc:a8:3f:6b:74
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 460800
Changed.
Configuring flash size…
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
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 0x00046fff…
Compressed 17104 bytes to 11191…

A fatal error occurred: Timed out waiting for packet content
*** [upload] Error 2

Any clues as what’s gone wrong?

Try setting upload_speed = 115200 in the platformio.ini?

I tried setting upload speed _115200 in platformio.ini for both an arduino and esp-idf framework program. No change (except that esptool.py didn’t do any changes to the baud rate)

Whoops- wiring error on breadboard was causing a flash error.

Must be beer-o-clock time for me!

There is an SPI flash built into the ESP-WROOM-32 chip. The [GPIO6-GPIO11] pins are exposed on certain ESP32 development boards. These pins are connected to the on-chip SPI flash and are not recommended for other uses.