xsp1989 / zigbeeFirmware

204 stars 21 forks source link

Home Assistant wont start with 7.X.X firmware (ERROR_OUT_MEMORY, and RESET_ASSERT) #31

Closed xatr0z closed 1 year ago

xatr0z commented 1 year ago

I'm not entirely sure if I have to report this here, at zigpy or home assistant, so sorry in advance if this is the wrong place. :)

I tried upgrading my Itead Zigbee stick (model without antenna/case) with the unsigned images. ncp-uart-sw_v6.10.3_115200.gbl worked fine in HA, but didnt solve the bugs with aqara devices i am having. Therefore i tried ncp-uart-sw_7.0.2.0_115200.gbl and later ncp-uart-sw_7.1.1.0_115200.gbl . Flashing both went OK and device went back to normal mode. But I wasnt able to get it working in HA:

...but none worked. I ended up with an unresponsive coordinator (RESET_ASSERT which i assume is some sort of crash):

2022-11-27 14:45:06.349 DEBUG (bellows.thread_0) [bellows.uart] Error code: RESET_ASSERT, Version: 2, frame: b'c2020682af7e'
2022-11-27 14:45:06.350 INFO (MainThread) [bellows.ezsp] NCP entered failed state. No application handler registered, ignoring...
2022-11-27 14:45:10.230 DEBUG (bellows.thread_0) [bellows.uart] Closed serial connection

Full error logs: bellows_zigpy_logs___after_ezsp_config.txt

This were the bellows defaults: bellows_defaults.txt

PS: Eventually I tried to go back to 6.10.3 and encountered the same issue as #28 . The outlined steps (using onboard buttons) helped to be able to revert the firmware to ncp-uart-sw_v6.10.3_115200.gbl

xsp1989 commented 1 year ago

This problem may be related to NVM cache, you can try to use nvm3_initfile.gbl file to reinitialize NVM.

MattWestb commented 1 year ago

May i requesting (not for my but for our users in the future) then making new EZSP firmware patching the 2 above configuration parameters (or using more standard settings the your chip have enough ram and CPU) so not getting problems with the coordinators.

One link for more information that can being good then some parameters cant being set in the GUI in SS5 https://github.com/NabuCasa/silabs-firmware/issues/1#issuecomment-1016230203.

xatr0z commented 1 year ago

This problem may be related to NVM cache, you can try to use nvm3_initfile.gbl file to reinitialize NVM.

Thanks for the reply, I already tried the nvm3_initfile but it didnt help

TheJulianJES commented 1 year ago

Set CONFIG_SUPPORTED_NETWORKS to 2 for the 7.x images from this repo. Bellows wants to set this to 1 (lowering limits should always work). However, the firmware simply crashes.

If you want to go back to 6.x firmware, you need the init file.

(Both 7.x with the config and going back to 6.x with the init file worked for me)