Hi Shicai,
You should be in touch with the IEEE 802.15.4 stack, so please take a look to this user guide.
Provides an introduction to IEEE 802.15.4 and details the NXP software resources for developing IEEE 802.15.4 applications.
https://www.nxp.com/docs/en/user-guide/JN-UG-3024.pdf
Then, please take a look to the The Jennic Operating System (JenOS) is designed for use in wireless network applications for the NXP JN516x device,
https://cache.nxp.com/docs/en/user-guide/JN-UG-3075.pdf?fsrch=1&sr=7&pageNum=1
After that, depending your application, if you need Zigbee stack or just the IEEE 802.15.4 protocol.
Hope it helps.
Best Regards,
Mario