-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTA starts but fails, esp unreachable #2438
Comments
I have the same problem with upload OTA to my WeMos D1Authenticating...OK |
@DanielHaubjergVestergaard Solved here, but I don't know why/how. |
So now I think I know what's the difference between when it worked and when not. My module is powered externally with 5V on it's Vin pin and it normally works fine with that. |
what do you get in Serial when it fails? Or do you say that it will not fail if Serial is attached? |
I just merged this, which may help with your issues. |
@me-no-dev as said, with serial connected it succeeds so I cannot see what happens when it fails. I will download your modified ArduinoOTA.cpp/h files to try. |
I got 889775c and uploaded my sketch again (over serial) to make it running with those latest changes. Uploaded again over OTA, again dead.
Staged: address:0x000B1000, size:0x0004E510 Update Success End ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1384, room 16 |
btw, during the last SUCCESS OTA, the IDE says: |
is it possible that you have tested the following way:
If this is what you did, the fix and explanation is in the second point :) |
No it is not a fix, to make it short: OTA only works with Serial connected. |
I use OTA daily :) I know it's working ;) |
Yes I believe you that it works with you. |
Did you try the exact steps above? It's really, really important to manually reset after Serial upload for OTA to work! |
Ah, I understand., thanks for clarifying. |
ESP doesn't automatically reboot after Serial upload. It starts running program directly. So if you are using OTA function you need to do a manual restart (press reset button or toggle power). |
Good to know @igrr , that seems to explain. |
@igrr @me-no-dev thanks, solved now I do a reset first thing after a Serial upload. |
The Wiki page for the ArduinoOTA library doesn't make mention of the need for a hard reset after serial upload of an OTA-containing sketch. |
I am having this issue also but the suggestions above have not solved it for me. Having to do a manual reset after an OTA upload makes OTA uploading pretty pointless in my situation as I don't have (easy) access to the device as it's deployed within waterproof housing outdoors, some distance from my computer, hence the need for OTA uploads. |
@2000jago If you read carefully, the suggestion above for a physical reset is meant only for right after update over serial. It is not meant for right after update OTA. |
Noted. I do not need serial, and have indeed hard reset the device after updating over USB. (Naturally since it has to be unplugged from USB and relocated to it's deployed location where it is powered by battery/solar once connected.) But the problem is that after an OTA update (which is indeed successful), the wemos does not reset itself and just hangs. It requires power cycle to resume operation with the new code sent via OTA. At which point it is fine until a new update is sent via OTA. I then have to power cycle the device to resume which is very inconvenient. |
Two random comments:
|
Sketch uses 314,161 bytes (30%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 39,992 bytes (48%) of dynamic memory, leaving 41,928 bytes for local variables. Maximum is 81,920 bytes.
Uploading...........................................................................................................................................................................................................................
18:50:59 [ERROR]: No Result!
Basic Infos
I have a laptop with Windows 10 in the same IP network segment and connected to the same wifi AP.
I do see the esp under Tools - Port.
Hardware
Hardware: NodeMCU v2
Core Version: 2.3.0
Description
Upload starts but after a couple of seconds it stops.
Then [ERROR]: No Result!
Before, and partially during the upload I can ping the esp, after a few seconds it's no more pingable and it never comes back.
Settings in IDE
Module: NodeMCU 1.0
Flash Size: 4MB
CPU Frequency: 80Mhz
Upload Using: OTA / SERIAL
Reset Method: nodemcu
Sketch
Stripped to the relevant parts, offcourse I connect to wifi and work with sensors and stuff.
Debug Messages
Uploading...........................................................................................................................................................................................................................
18:50:59 [ERROR]: No Result!
The text was updated successfully, but these errors were encountered: