Page 1 of 1

I cannot make ESP8266 restart with a different binary

Posted: Sat Oct 21, 2017 1:09 am
by pjunni
Hi!

Let's say my device is running firmware A.bin and then through FOTA downloads and loads successfully B.bin, which has the following code. I'm still not able to make B.bin restart the device in A.bin.

Code: Select all

system_upgrade_flag_set(UPGRADE_FLAG_FINISH);
Serial.println(system_upgrade_userbin_check());
system_upgrade_reboot();


The device does reboot and the system_upgrade_userbin_check always returns a 0 if it previously returned a 1 and vice versa, so it thinks it runs a different binary, but the firmware name and md5 is still that of B.bin. What is still missing here for rebooting the device in the other firmware (A.bin)?

Thank you in advance!

Re: I cannot make ESP8266 restart with a different binary

Posted: Mon Oct 30, 2017 9:53 pm
by pratik
Which SDK version are you using? The latest seems to work just fine with this.