The SDK version I use is SDK2.6.2_JN5189DK6, and the program I use is Zigbee_ed_ex_on. The logic of the program is as follows: when the serial port receives a byte of data, it prints the data "7", then unicast a packet of wireless data to the coordinator , and prints the status of data transmission.
The current phenomenon is that when the board is powered on and the networking is successful (confirmed by capturing the packet), a data is sent to the serial port, and the serial port will successfully print "7".The abnormal situation is that the board can sometimes send the data out (visible by capturing the packet) and print the state of sending the data (0, indicating that the data is sent successfully), and sometimes can not send the data out, and the serial port has no state of printing the data to send, at this time the board can not operate normally, can only be restarted.
Here are the serial port interrupt handling functions and the wireless data transmission functions in the code:



What causes the program to jam after calling ZPS_eAplAfUnicastAckDataReq()?What's the solution?
Thank you for your time!