HI Daniel:
Thank you for the reply.
As your suggest,
I added "STATE of TD_STRUCT_PTR" and "_task_get_priority" to get the state and priority of PING task
before restart and after restart.
[result is below]
-----------------------------------------------------------------------------------------------
before restart --- Ping task priority: 10. <-- priority is 10
before restart --- Ping task state: 13. <-- state is SEND_BLOCKED
..._task_restart() Ping_task OK.
after restart --- Ping task priority: 10. <-- priority is 10
after restart --- Ping task state: 2. <-- state is SEND_BLOCKED
... after 1 sec get again
after restart --- Ping task priority: 10. <-- priority is 10
after restart --- Ping task state: 11. <-- state is UNHANDLED_INT_BLOCKED
... and then always get the same results
after restart --- Ping task priority: 10.
after restart --- Ping task state: 11.
-----------------------------------------------------------------------------------------------
After _task_restart(), the state of PING task was from READY turn to UNHANDLED_INT_BLOCKED.
It seems that unhandled interrupt or exception occurs happened ?
Regards
Bing