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 upload succesfull, but old sketch remains, even when I JUST flashed the Optiboot bootloader #200

Open
ChadMatsalla opened this issue Apr 20, 2023 Discussed in #151 · 3 comments

Comments

@ChadMatsalla
Copy link

Discussed in #151

Originally posted by AttilaTtila April 24, 2022
Hi Juraj,

I have 2x Mega2560 (with builtin Wifi) boards and i'd really like to make OTA working for them!
So i burned the Optiboot bootloader by MCUDude.
Then i used your example sketch (SerialWiFiOTA) to test. Then i make minor change in the code and upload it via "Upload using programmer". All seems OK, "Sketch uploaded successfully" message appears, but after board resets, the old sketch started running again (or it just hangs completely).
Any advise please?
Thanks!
Attila

@JAndrassy
Copy link
Owner

If you test OTA with the 'fake' programmer, close the Serial Monitor in IDE. With Serial Monitor open, IDE will reset the board after upload tool finishes. The board then doesn't finish to apply the update.

@ChadMatsalla
Copy link
Author

What about when arduinoOTA is used? Definitely no serial connection is open to the board.

@JAndrassy
Copy link
Owner

if you use network port then no, Serial Monitor is not connected. but with ota programmer method the Serial Monitor could be connected.

are you on Windows or on Linux? I had problems on Linux with upload command in quotes.

insufficient powering could be a problem. doing wifi and writing to flash at the same time.

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

2 participants