Hi There,
- Is there a way of OTA downloading the new firmware, but not reboot - and in the next system start, checking for a new firmware and switch. I would like to OTA update but without the reboot.
- Where does ESP8266 saves the user(1|2).bin it's currently using? How can I reset it to user1.bin? After doing a OTA update from user1.bin to user2.bin I flashed the uC (user1.bin), bootloader and device / user settings area, but it still wanted to load user2.bin.
OTA postpone system_upgrade_reboot / bootloader flag
Re: OTA postpone system_upgrade_reboot / bootloader flag
Postby blubb » Mon Nov 06, 2017 9:14 pm
If you do the update (flash writing) manually via the APIs spi_flash_erase_sector and spi_flash_write, there is no need to activate the new binary right away. You can do that at a later time (even after reboots) by
system_upgrade_flag_set(UPGRADE_FLAG_FINISH);
system_upgrade_reboot();
But doing it that way, of course, you have to make sure that (next) binary is really present.
system_upgrade_flag_set(UPGRADE_FLAG_FINISH);
system_upgrade_reboot();
But doing it that way, of course, you have to make sure that (next) binary is really present.
Who is online
Users browsing this forum: No registered users and 120 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.