Mike
Mike
In `Basic_rBoot`, in `OtaUpdate_CallBack`, could you change `System.restart()` to `System.restart(1000)` and see if that helps?
Also, see #1611, slaff mentioned about setting GPIO#0 high: "If you flash the device and call software restart having the UART lines up it will cause a WDT reset." https://github.com/SmingHub/Sming/pull/1611#issuecomment-462289122
I suspect it's SDK related - try building on SDK 3.0 see #1470 - I use this all the time without issue.
@Evgsurf You're welcome. Apologies, though, the SDK 3.0 post is a little out of date. To build with SDK 3.0 support all you need to do is: ``` cd $SMING_HOME...
https://bbs.espressif.com/viewtopic.php?t=574 https://www.esp8266.com/viewtopic.php?f=32&t=9459
Something else to try. After programming, do a hard reset _before_ running an update.
Yaaay! The above two posts should help to explain what's happening - the `System.restart()` remembers the previous boot mode (i.e. programming mode) and uses that. The hard reset clears this....
> I guess in is not bad if method `void rBootHttpUpdate::start()` will be `int rBootHttpUpdate::start()` and return an error code (Error -9 is 'connection reset') I agree, needs some way...
@slaff I didn't make any functional changes to `rBootHttpUpdate` (or `HttpClient`) and haven't specifically looked at this issue yet. Update: work in progress
Continuing from above, here are the require steps to perform an OTA upgrade: 1. Ensure the system is booting and running from the `APP 2` partition 2. Flash sectors 2...