boot loop after OTA update of esp32 v2.0.0 on v1.4.0 bootloader

Zevver
Posts: 14
Joined: Sun Oct 17, 2021 5:18 pm

boot loop after OTA update of esp32 v2.0.0 on v1.4.0 bootloader

Postby Zevver » Wed Nov 03, 2021 3:29 pm

Hello,

I've been asked to make some updates on some legacy ESP32 Arduino software. The original software is build on top of esp32 board package v1.4.0 which uses IDF 3.3 IIRC. Because of some bugs in this old IDF version we have upgraded the esp32 board package to the recent v2.0.0 which uses the latest IDF version. The application runs correctly when flashing directly over the serial port, but when performing an OTA firmware update, the device ends up in a boot loop:

Code: Select all

[11/2 19:40:52.2]rst:0x3 (SW_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
[11/2 19:40:52.2]configsip: 0, SPIWP:0xee
[11/2 19:40:52.2]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[11/2 19:40:52.2]mode:DIO, clock div:1
[11/2 19:40:52.2]load:0x3fff0018,len:4
[11/2 19:40:52.2]load:0x3fff001c,len:1216
[11/2 19:40:52.2]ho 0 tail 12 room 4
[11/2 19:40:52.2]load:0x40078000,len:9720
[11/2 19:40:52.2]ho 0 tail 12 room 4
[11/2 19:40:52.2]load:0x40080400,len:6352
[11/2 19:40:52.2]entry 0x400806b8
[11/2 19:40:52.2]ets Jun  8 2016 00:22:57
There seems to be some incompatibility between the old version boot loader and the code compiled on the new IDF toolchain.

Is this a known issue, and is there a way to work around this?

Who is online

Users browsing this forum: Google [Bot] and 74 guests