Zboss "crash" in zb_schedule_alarm()

Hello,

I'm using the zboss stack to implement a zigbee end device on nrf5340.

My device is able to connect to a zigbee network and to notify sensor events on zigbee but after a random time a crash happens on the stack side :

I'm quite stuck to debug this issue.

it seems that the stack stops because of an error executing zb_schedule_alarm() but I have no more clues.

How do you debug such issue ?

Environment :

* nRF5340

* NRF_SDK_VERSION=v1.0.1
  NRF_SDK_NAME=ncs-zigbee-r22
  NRF_MAIN_SDK_VERSION=v2.9.0

Regards,

Gaël

  • Hi, 

    • The latest shared traces didn't reproduce the issue. New traces (provided on Jan 9, 2026) don’t show the crash.
    • zboss_trace_20260108_155224.bin from Jan 8, 2026 show the crash and the scheduler queue full with mostly function address 0003f661.

    • ELF from Jan 9, 2026 show that culprit function is zb_nwk_ed_send_timeout_req, but we would need to double check on a combination of build files + traces that show the crash. Function pointers have bit 0 set to 1 to indicate ARM Thumb Mode.
      arm-none-eabi-nm build_dk/light_switch/zephyr/zephyr.elf | grep "0003f660"
      0003f660 T zb_nwk_ed_send_timeout_req
      Detailed analysis from the traces back up this theory.

    • For now, there are no plans to provide R22 add-on updates with new libraries. Recommendation would be to move to the R23 add-on and use zboss_use_r22_behavior() if needed. May I know why you are using the R22 add-on instead of R23?

    • A workaround on the customer side could be to increase the value of ZB_SCHEDULER_Q_SIZE from 24 to 32 or even 48.

    -Amanda H.

  • Hello Amanda,

    thanks for the explanations.

    * I will re-send traces (later). I'm surprised you don't see the issue. I'm quite sure I had a crash on the device (log message) when I recorded the log. Maybe there is another issue.

    * I don't have access to the JIRA ticket of DSR, an account is required. Can you share the content ?

    * I chose R22 because R23 wasn't supported for nRF5340 when I moved to the last version of stack. I just discovered nRF5340 is now supported. I might move to the R23 version.

  • Sorry for the mistake. The JIRA is for internal use. Please move to the R23 version.

  • Hello Amanda,

    I tested the example app with R23 during 2h without having a crash. So I will not re-send you traces on R22.

    I started to move my app to R23 but I have build issue. I get back to you when I will be able to re-test my app.

    Gaël

Related