Skip to content
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: Invalid bootstrapping #3915

Closed
jonatanolofsson opened this issue Dec 5, 2017 · 4 comments
Closed

OTA: Invalid bootstrapping #3915

jonatanolofsson opened this issue Dec 5, 2017 · 4 comments

Comments

@jonatanolofsson
Copy link
Contributor

Basic Infos

Hardware

Hardware: ?Wemos D1 mini?
Core Version: ?git/master?

Description

After having succesfully built an appication (custom makefile, i.e. command line) and uploaded it successfully through UART, I tried uploading with espota.py:

python tools/espota.py -i 192.168.1.66 -f app.bin

Debug Messages

[ERROR]: Bad Answer: ERR: ERROR[11]: Invalid bootstrapping

I then tried, with my own application running on the board, to upload through platformio, but this yielded the same error. If, however, I do the upload from platormio via uart first, I can once again use OTA to upload (though does not run without manual reset). The platformio uses the arduino framework version they call "1.20300.1", whereas again my application is built from the git master branch.

Question:

Do I need to create a different binary for OTA uploads than serial uploads?

Alternatively, how do I set boot mode correctly for OTA?

@WereCatf
Copy link
Contributor

WereCatf commented Dec 6, 2017

The documentation already says that if you upload a sketch through serial, you'll have to reset the board first manually, before OTA will work, ie. upload via serial, reset the board, then use OTA.

@jonatanolofsson
Copy link
Contributor Author

That solved the issue! I Thank you! Though may I ask where in the documentation you are referring to?

@satblip
Copy link

satblip commented Sep 2, 2018

It solved the issue here too (platformio environment), thanks!

@ArtiomLK
Copy link

ArtiomLK commented Jul 4, 2019

That solved the issue! I Thank you! Though may I ask where in the documentation you are referring to?

Note: ESP module should be reset after serial upload. Otherwise subsequent steps will not work. Reset may be done automatically for you after opening serial monitor as visible on the screenshot above. It depends on how you have DTR and RTS wired from USB-Serial converter to the ESP. If reset is not done automatically, then do it by pressing reset button or manually cycling the power. For more details why this should be done please refer to FAQ regarding ESP.restart().

from ESP8266 Arduino Core - OTA UPDATES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants