ESP.restart() does't trigger complete boot after Update()
Posted: Mon Jan 03, 2022 1:34 am
I have some code that runs Update() from data stored in eMMC. The process works great, but the call to ESP.Restart() doesn't cause a successful boot. Resetting the ESP32 after this, the new firmware boots perfectly.
Verbose log:
rst:0xc (SW_CPU_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
Then the boot process freezes at "entry 0x400806b4".
Any idea how I can get the boot process to complete, without having to manually restart using the reset button or cycling the power?
Thanks!
- if(Update.end()){
- if(Update.isFinished()){
- sdmmc_host_deinit();
- delay(1000);
- ESP.restart();
- } else {
- log_e("Update.isFinished() : false");
- }
- } else {
- log_e("Update.end() : false");
- }
Verbose log:
rst:0xc (SW_CPU_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
Then the boot process freezes at "entry 0x400806b4".
Any idea how I can get the boot process to complete, without having to manually restart using the reset button or cycling the power?
Thanks!