Hello Yi-Lin,
I received answer from application engineer.
This sounds like an issue we have encountered before, and we believe it is due to the socket used on the EVB. The socket is a low cost unit which may have undesirable inductance parasitics. The issue is currently under investigation via TKT320144 (on dpdm), which has found that under certain circumstances the IRC can become stuck leading to the device hanging and requiring a full power cycle to recover.
I tried the code you sent and I can also reproduce the issue here on my setup. I then tried the code on the Dolphin demo sensor board and as expected the issue does not occur, therefore I believe it is the known issue regarding the EVB socket.
So your code is correct. I hope you do not have use-case where you need to send so many packet in loop (as you send in your project).
If you have any other question, please feel free to write me back.
Regards,
Martin