Shelly plus 1 update bricked device

  • Hi everybody. I tried to upgrade one of my Shelly plus 1, but the upgrade did not complete successfully and I lost connection to my device. I tried to reset it, with no success, so at the end I bought a USB to serial adapter to see what was going wrong and I found the device was stucked in a boot loop, since it was not able to find a bootable partition (see the log below).

    I thought about flashing the firmware using the serial connection, but I did not find where to download it. Could you please help me with this?

    Thanks

    rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

    configsip: 188777542, 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:0x3fff0030,len:4

    load:0x3fff0034,len:6520

    load:0x40078000,len:12764

    load:0x40080400,len:4336

    entry 0x400806b8

    I (58) boot: ESP-IDF 4.2-r1 2nd stage bootloader

    I (58) boot: compile time 15:05:53

    I (58) boot: chip revision: 3

    I (61) boot_comm: chip revision: 3, min. bootloader chip revision: 0

    I (69) boot.esp32: SPI Speed : 80MHz

    I (73) boot.esp32: SPI Mode : DIO

    I (78) boot.esp32: SPI Flash Size : 4MB

    I (82) boot: Enabling RNG early entropy source...

    I (88) boot: Partition Table:

    I (91) boot: ## Label Usage Type ST Offset Length

    I (98) boot: 0 nvs WiFi data 01 02 00009000 00004000 00000000

    I (107) boot: 1 otadata OTA data 01 00 0000d000 00002000 00000000

    I (115) boot: 2 app_0 OTA app 00 10 00010000 00180000 00000000

    I (123) boot: 3 fs_0 FS 01 82 00190000 00070000 00000000

    I (132) boot: 4 app_1 OTA app 00 11 00200000 00180000 00000000

    I (140) boot: 5 fs_1 FS 01 82 00380000 00070000 00000000

    I (148) boot: 6 aux unknown 55 00 003f0000 0000c000 00000000

    I (157) boot: 7 shelly WiFi data 01 02 003fc000 00004000 00000000

    I (165) boot: End of partition table

    I (169) boot: OTA data 0: seq 0x00000001, st 0x10, CRC 0x157a2b85, valid? 1

    I (177) boot: OTA data 1: seq 0x00000000, st 0x00, CRC 0x00000000, valid? 0

    I (185) boot_comm: chip revision: 3, min. application chip revision: 0

    I (192) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2b23c (176700) map

    I (257) esp_image: segment 1: paddr=0x0003b264 vaddr=0x3ffb0000 size=0x03448 ( 13384) load

    I (262) esp_image: segment 2: paddr=0x0003e6b4 vaddr=0x40080000 size=0x00400 ( 1024) load

    I (264) esp_image: segment 3: paddr=0x0003eabc vaddr=0x40080400 size=0x0155c ( 5468) load

    I (275) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0xc1678 (792184) map

    E (533) esp_image: invalid segment length 0xffffffff

    E (533) boot: OTA app partition slot 0 is not bootable

    I (534) boot_comm: chip revision: 3, min. application chip revision: 0

    I (541) esp_image: segment 0: paddr=0x00200020 vaddr=0x3f400020 size=0x3304c (208972) map

    E (616) esp_image: invalid segment length 0x8e0fffa

    E (616) boot: OTA app partition slot 1 is not bootable

    E (616) boot: No bootable app partitions in the partition table

    ets Jul 29 2019 12:21:46

  • Hey Marco,

    Did you ever get this resolved?

    I am trying to understand how to flash the original firmware back to a Shelly Dimmer 2, but the files I can download from here (or http://archive.shelly-tools.de/) contain a bunch of bin files and a a manifest file that seems to map the files to different ROM locations:

    pasted-from-clipboard.png

    So not sure a normal flashing tool (like esptool) would work to upload the binaries correctly.

    Can anyone from Shelly help here?