Can't flash ESP32-C3 via OTA/ wifi

Hello y'all!

I managed to get a few ESP32-C3 boards from aliexpress before the tarrifs, and everything is working great so far, except programming via OTA / wifi.

Thats the board that I bought:
https://www.aliexpress.us/item/32568073 ... pt=glo2usa

What I did so far:

  • flash the OTAbasic sample from the Arduino IDE via usb-c (ssid and pw are set)
  • verify that the esp32 got assigned an IP address
  • I can successfully ping the esp32

Then I try to flash the same sketch, but this time I select the ESP32 @192.168.0.197 from the "port" menu.
Compiling starts, but after a while it always errors out with :

Uploading: [========= ] 15%
Uploading: [========= ] 15%
Uploading: [========= ] 15%
13:53:23 [ERROR]: Error Uploading: [Errno 32] Broken pipe
Failed uploading: uploading error: exit status 1

After that happened, I cant ping the esp32 anymore and it needs a power cycle...

Not sure if it makes sense to provide the sketch that I used, as its the standard sample that comes with the arduino ide.
Wifi and power supply are both stable. Flashing via USB-C works like a charm....

Any ideas what the issue might be?

Thx in advance!
Sebastian

How are the firewall settings for esptool.py ?

I am not using a firewall on this macbook.

Anything in the router ?
If you set up the esp32 as an Access Point and connect the laptop to it instead of through the router, does that help ?

need to google how to do this. thx for the tip.
but still.. shouldnt it also work "just like this"?

Now it worked for like 3-4 minutes, and then it errored out at 61%

Other wifi traffic on the router may be disturbing the upload. Hence the suggestion of making a direct WiFi connection with the ESP

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.