ESP8266 Developer Zone The Official ESP8266 Forum 2017-10-24T21:55:10+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=6902 2017-10-24T21:55:10+08:00 2017-10-24T21:55:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6902&p=16694#p16694 <![CDATA[Re: Changing the currently running user binary]]>
system_upgrade_flag_set(UPGRADE_FLAG_FINISH);
system_upgrade_reboot();

to finalize the OTA upgrade.

Question: Is there a way to boot the new image ONLY ONCE? So that its functionality can be verified BEFORE the change becomes permanent?

Edit:
Question 2: How does the bootloader (1.7) determine the current image is "broken"? I understand it reverts the change and goes back to the other image if something is wrong. But what must be wrong? I've seen it boot one image that caused an exception over and over and over again with no attempt to go to the other image. I had to reflash manually via UART.

Statistics: Posted by blubb — Tue Oct 24, 2017 9:55 pm


]]>
2017-10-13T16:54:56+08:00 2017-10-13T16:54:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6902&p=16416#p16416 <![CDATA[Re: Changing the currently running user binary]]> Statistics: Posted by blubb — Fri Oct 13, 2017 4:54 pm


]]>
2017-10-13T10:06:10+08:00 2017-10-13T10:06:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6902&p=16414#p16414 <![CDATA[Re: Changing the currently running user binary]]> Statistics: Posted by Her Mary — Fri Oct 13, 2017 10:06 am


]]>
2017-10-13T07:04:38+08:00 2017-10-13T07:04:38+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6902&p=16411#p16411 <![CDATA[Changing the currently running user binary]]>
there are various boot modes which can be chosen by different GPIO voltage levels. Is there also a way to change the currently running user binary?

Let's assume I use OTA firmware updates. One day I accidentally upload a new version which has broken OTA support. Ooops. Now I cannot correct my mistake: The firmware has a correct checksum and it starts fine. So the bootloader will run it on every power on. What options do I have besides re-flashing the module?

It would be cool if there was a special GPIO setting to force either user1 or user2...

Statistics: Posted by blubb — Fri Oct 13, 2017 7:04 am


]]>