RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.73k stars 360 forks source link

HAA Update went wrong #962

Closed i3laze closed 4 years ago

i3laze commented 4 years ago

Two days ago I started OTA-Update on several Shelly.Cloud units running HAA 2.3.1 and OTA 3.0.1 and it took too long. I've reset WiFi router a few times and eventually the power.

Now they don't boot and don't go to emergency Setup mode/broadcast HAA-SSID. I'm trying reflash and preserve settings using https://github.com/RavenSystem/esp-homekit-devices/issues/768#issuecomment-581898393

I thought OTA code was resilient and will continue flashing after reset. How so? Is this the same issue fixed in HAA 2.3.4/OTA 3.0.6?

pp_task_hdl : 3ffef9a8, prio:14, stack:512
pm_task_hdl : 3ffef410, prio:1, stack:176
frc2_timer_task_hdl:0x3fff4b48, prio:12, stack:200

ESP-Open-SDK ver: 0.0.1 compiled @ May 17 2020 18:10:18
phy ver: 273, pp ver: 8.3

Sysparam OK

WiFi Init
Fatal exception (28): 
epc1=0x40218827
epc2=0x00000000
epc3=0x00000000
excvaddr=0x00000005
depc=0x00000000
excsave1=0x40218824
Registers:
a0 40218824 a1 3fff38d0 a2  00000001 a3  00000000
a4  00000001 a5  00000000 a6  3fff3884 a7  3feffe00
a8  00000000 a9  0000001a a10 00000018 a11 04000102
a12 00000006 a13 3fff2510 SAR 00000008

Stack: SP=0x3fff38d0
0x3fff38d0: 3fff3910 00003002 0000ffff 00000001
0x3fff38e0: 69466957 00000000 00000000 00000000
0x3fff38f0: 00000000 00000000 00000000 00000000
0x3fff3900: 7274616d 32697661 00003233 00000000
0x3fff3910: 00000000 00000000 00000000 00000000
0x3fff3920: 00000000 00000000 00000000 00000000
0x3fff3930: 00000000 00000000 00000000 00000000
0x3fff3940: 00000000 00000000 3fff27dc 00000000

Free Heap: 45936
_heap_start 0x3fff29c8 brk 0x3fff4c90 supervisor sp 0x40000000 sp-brk 45936 bytes
arena (total_size) 8904 fordblks (free_size) 0 uordblocks (used_size) 8904

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 2292, room 16 
tail 4
chksum 0x57
load 0x3ffe8000, len 772, room 4 
tail 0
chksum 0x0b
csum 0x0b

rBoot v1.4.0 - richardaburton@gmail.com
Flash Size:   8 Mbit
Flash Mode:   DOUT
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: RTC data

Booting rom 0.
WAlЊ|тbмтnтp‚Њnnћlnnмђnаpn~мrb’n|bnЊlb`rlpp_task_hdl : 3ffef9a8, prio:14, stack:512
pm_task_hdl : 3ffef410, prio:1, stack:176
frc2_timer_task_hdl:0x3fff4b48, prio:12, stack:200

ESP-Open-SDK ver: 0.0.1 compiled @ May 17 2020 18:10:18
phy ver: 273, pp ver: 8.3

Sysparam OK

WiFi Init
Fatal exception (28): 
epc1=0x40218827
epc2=0x00000000
epc3=0x00000000
excvaddr=0x00000005
depc=0x00000000
excsave1=0x40218824
Registers:
a0 40218824 a1 3fff38d0 a2  00000001 a3  00000000
a4  00000001 a5  00000000 a6  3fff3884 a7  3feffe00
a8  00000000 a9  0000001a a10 00000018 a11 04000102
a12 00000006 a13 3fff2510 SAR 00000008

Stack: SP=0x3fff38d0
0x3fff38d0: 3fff3910 00003002 0000ffff 00000001
0x3fff38e0: 69466957 00000000 00000000 00000000
0x3fff38f0: 00000000 00000000 00000000 00000000
0x3fff3900: 7274616d 32697661 00003233 00000000
0x3fff3910: 00000000 00000000 00000000 00000000
0x3fff3920: 00000000 00000000 00000000 00000000
0x3fff3930: 00000000 00000000 00000000 00000000
0x3fff3940: 00000000 00000000 3fff27dc 00000000

Free Heap: 45936
_heap_start 0x3fff29c8 brk 0x3fff4c90 supervisor sp 0x40000000 sp-brk 45936 bytes
arena (total_size) 8904 fordblks (free_size) 0 uordblocks (used_size) 8904
RavenSystem commented 4 years ago

Is this the same issue fixed in HAA 2.3.4/OTA 3.0.6?

Yes. You must reflash it.

i3laze commented 4 years ago

Yeap, This https://github.com/RavenSystem/esp-homekit-devices/issues/768#issuecomment-581898393 command did the trick. Restored with configuration and HomeKit ID intact. Took latest haaboot.bin from here https://github.com/RavenSystem/haa/releases