I cannot make ESP8266 restart with a different binary

pjunni
Posts: 1
Joined: Sat Oct 21, 2017 12:55 am

I cannot make ESP8266 restart with a different binary

Postby pjunni » Sat Oct 21, 2017 1:09 am

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!

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: I cannot make ESP8266 restart with a different binary

Postby pratik » Mon Oct 30, 2017 9:53 pm

Which SDK version are you using? The latest seems to work just fine with this.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: Bing [Bot] and 6 guests