Hello.
I'm using Zigbee SDK 4.1.0 with custom pca10059-compatible debug board with nrf52840.
Binding and subscribing to attributes on a multiple endpoint device appears to clear or prevent loading NVRAM memory. The device forgets the state of pairing, subscriptions, bindings and everything else after restart.
Error appears even after applying fix from this topic: https://devzone.nordicsemi.com/f/nordic-q-a/59648/zigbee-unable-to-subscribe-to-attributes-and-or-receive-reports-on-device-with-multiple-endpoints
Steps to reproduce:
1) Start cli agent as router in existing network or as coordinator.
2) Start ble_zigbee_dynamic_color_light_bulb_thingy example holding SLEEPY_ON_BUTTON button to enable rx when idle option (to disable sleepy device behavior) and wait to join into network
3) Start ble_zigbee_dynamic_color_light_bulb_thingy example again. Device will send "rejoin" command (as expected after restart)
4) Bind and subscribe to attributes from cli agent:
5) Start ble_zigbee_dynamic_color_light_bulb_thingy example again. Device will send "Association Request" command as it it were running with cleared NVRAM memory.
I have attached Wireshark traffic dumps.