OTA firmware update not working for 1.20.2.rc7
Note this is only an issue for updating to 1.20.2.rc7 (1.20.2.rc6 is okay)
I'm trying to do an OTA firmware update to 1.20.2.rc7 from 1.20.1.r2, and I get the following error:
E (56) esp_image: image at 0x210000 has invalid magic byte
Cannot load Firmware img in the active partition! .. Defaulting back to previous partition
Here is the full log:
Pycom MicroPython 1.20.1.r2 [v1.11-06dfad0] on 2019-11-30; WiPy with ESP32 Pybytes Version: 1.3.0 Type "help()" for more information. >>> Requesting: downloads/appimg/firmware_WiPy_1.20.2.rc7.bin to software.pycom.io:443 with SSL? True Wrapping socket Sending request start ets Jun 8 2016 00:22:57 rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (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:0x3fff8020,len:8 load:0x3fff8028,len:2136 load:0x4009fa00,len:19880 entry 0x400a05d0 E (56) esp_image: image at 0x210000 has invalid magic byte Cannot load Firmware img in the active partition! .. Defaulting back to previous partition``` It then resets into the original firmware. Any ideas?
I tried the OTA firmware update on WiPy from 1.20.1.r2 to 1.20.2.r7 using OTA firmware update example and the update worked fine. Please refer to this example (https://docs.pycom.io/tutorials/all/ota/) for the exact steps to perform an OTA update.
The image file that you have in the flash seems to be corrupt. Make sure that the file is written correctly.
catalin last edited by
hi @troy-salt, we are looking into this issue.