This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Program enters hardfault after exiting from ZB_ZDO_SIGNAL_SKIP_STARTUP state

Hello Nordic support,

I am developing a Zigbee application based on FreeRTOS for a device with coordinator role. I was able to add the Zigbee stack and start the Zigbee task successfully. This is the code in the Zigbee task:

void ZigbeeTask(void * ptr)
{
    zb_ret_t       zb_err_code;
    /* Start Zigbee Stack. */
    zb_err_code = zboss_start_no_autostart();
    
    while (true)
    {
        zboss_main_loop_iteration();
        vTaskDelay(1);
    }
}

When I run the program, I am able to see that it initially enters ZB_ZDO_SIGNAL_PRODUCTION_CONFIG_READY state and then enters ZB_ZDO_SIGNAL_SKIP_STARTUP state. However, once it comes out of the ZB_ZDO_SIGNAL_SKIP_STARTUP  state, the program enters hardfault. On debugging, I can see that it successfully exits ZB_ZDO_SIGNAL_SKIP_STARTUP  state and enters zboss_main_loop_iteration function but not sure what happens next that causes the hardfault.

Could you please provide suggestion as to why the program crashes after ZB_ZDO_SIGNAL_SKIP_STARTUP state? Please let me know if you need additional details regarding my query.

Thanks,

Anusha

Related