arduino-ide icon indicating copy to clipboard operation
arduino-ide copied to clipboard

Uploading the sketch OTA unfortunately hangs

Open kittaakos opened this issue 2 years ago • 4 comments

Describe the problem

Originally reported by @MarkSDS here:

Uploading the sketch OTA unfortunately hangs with these messages:

Sketch uses 792510 bytes (60%) of program storage space. Maximum is 1310720 bytes. Global variables use 42556 bytes (12%) of dynamic memory, leaving 285124 bytes for local variables. Maximum is 327680 bytes. Sending invitation to 192.168.2.26 Uploading............. followed by A LOT of dots thereafter. No clue as for the reason for this hanging.

To reproduce

@kittaakos will update this

Expected behavior

Can upload the OTA sketch.

Arduino IDE version

Version: 2.0.0-rc9.2.nightly-20220826 Date: 2022-08-26T03:53:51.674Z CLI Version: git-snapshot [42cd9e17]

Operating system

N/A

Operating system version

N/A

Additional context

No response

Issue checklist

  • [X] I searched for previous reports in the issue tracker
  • [X] I verified the problem still occurs when using the latest nightly build
  • [X] My report contains all necessary details

kittaakos avatar Aug 26 '22 11:08 kittaakos

@MarkSDS which version of the ESP32 boards platform are you using?

You can see it in the Arduino IDE Boards Manager, like this:

image

per1234 avatar Aug 29 '22 07:08 per1234

I checked, and I was on 1.0.6: 2022-08-29 21_36_15-Greenshot (2)

Updated towards 2.0.4 (!), thank you. 2022-08-29 21_43_20-Greenshot (2)

Problem appereance altered somewhat, but the result now (one try done) is No Response: 2022-08-29 22_01_30-Greenshot (2)

I came across this post because earlier tonight the module wasn't responsive while on USB neither. That part was solved by unattaching it from the breadboard-to-be.

I'll investigate further tomorrow and post my findings here. Thank you for any guidance.

MarkSDS avatar Aug 29 '22 20:08 MarkSDS

Update: I tried to remove any Serial.print() in the OTA sketch. I can imagine it might be hard to write to Serialover the air. I added some sys.stderr.write() in espota.py in an attempt to see what's going on, but the Arduino IDE does not use that saved python script while uploading, obviously: the terminal doesn't change it's behaviour. Randomly pushing or holding RST or PWR had no succes.

MarkSDS avatar Aug 29 '22 20:08 MarkSDS

Tried the online IDE. The connection via WiFi is available, though not stable at all. I can select various boards, e.g. the DOIT ESP32 Devkit V1 as well as the auto-detected ESP32-c4dd57767370.

Whenever OTA upload starts, board is recognised as a Yún and compiling #include <ESPmDNS.h> throws a fatal error.

MarkSDS avatar Sep 01 '22 21:09 MarkSDS