Tool/software: WEBENCH® Design Tools
I have test some function 's executing times.
My device is coordinator, and it not execute "bdb_StartCommissioning( 0 )" ( reload network ) immediately when mcu restart or power-on. It execute reload network triggered by UART command.
The executing time of "zcl_SendCommand" is not a constant value after reset, sometimes is 3ms, sometimes is 5ms, sometimes is 8ms, sometimes is 12ms. The executing time of "zcl_SendCommand" will be change by reseting MCU.
I had debugged it and found that the most costing time of "zcl_SendCommand" is executing "secCB" in "ZMacDataReqSec". It will execute "osal_nv_read( ZCD_NV_NWK_ACTIVE_KEY_INFO, 0, sizeof(nwkKeyDesc), &nwkKey )" , which will cost 1ms, 2ms, 5ms, 6ms. The executing time will be changed when MCU reset.