ESP32 OTA not uploading

Having trouble getting OTA to upload. Seem to authenticate, The everloop pauses for a short time and then restarts when upload fails.

> pio run --target upload
> Processing esp32dev (platform: espressif32@1.9.0; board: esp32dev; framework: arduino)
> Verbose mode can be enabled via `-v, --verbose` option
> PLATFORM: Espressif 32 1.9.0 > Espressif ESP32 Dev Module
> HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
> DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)

> CURRENT: upload_protocol = espota
> Uploading .pio\build\esp32dev\firmware.bin
> 10:59:11 [DEBUG]: Options: {'timeout': 10, 'esp_ip': '', 'host_port': 13539, 'image': '.pio/build/esp32dev/firmware.bin', 'host_ip': '', 'auth': 'voice', 'esp_port': 3232, 'spiffs': False, 'debug': True, 'progress': True}
> 10:59:11 [INFO]: Starting on
> 10:59:11 [INFO]: Upload size: 965120
> Sending invitation to 
> Authenticating...OK
> 10:59:11 [INFO]: Waiting for device...
> 10:59:21 [ERROR]: No response from device
> *** [upload] Error 1
> ======================================================== [FAILED] Took 13.76 seconds ========================================================

I have tried the troubleshooting at bottom off:


I have that issue sometimes as well, I just keep trying and also it might help to unplug the device.
I cannot seem to find the cause I must say.

Hi @Romkabouter thanks for replying.
So it works sometimes for you? If that’s true then i could just put it in retrying until it succeeds. But not a good solution.


It works most of the time for me.