我开了几个线程,msh用ps查看
thread pri status sp stack size max used left tick error
-------- --- ------- ---------- ---------- ------ ---------- ---
Task_4 10 suspend 0x00000178 0x00001000 15% 0x00000003 000
Task_3 10 suspend 0x00000148 0x00001000 15% 0x00000004 000
Task_2 10 suspend 0x00000178 0x00001000 14% 0x0000000a 000
Task_1 10 suspend 0x00000150 0x00001000 16% 0x00000007 000
LcdShow 19 suspend 0x00000110 0x00000800 19% 0x00000011 000
LcdScan 11 suspend 0x000000a8 0x00000800 64% 0x00000008 000
4G Conne 16 suspend 0x00000078 0x00000400 80% 0x00000012 000
USR-7S3 15 suspend 0x00000088 0x00000400 19% 0x00000002 000
tshell 20 running 0x00000208 0x00001000 12% 0x00000005 000
ulog_asy 30 suspend 0x00000084 0x00000400 25% 0x00000014 000
tidle0 31 ready 0x00000058 0x00000100 34% 0x0000001f 000
main 11 suspend 0x00000104 0x00000800 43% 0x00000004 000
其中,Task_1~Task_4 是流程,里面有电机运动,LcdShow与LcdScan是屏幕交互,4G是网络,USR是扫码枪。
运行状态:
仪器在做老化时,(不停地循环操作Task_1~Task_4,Task_1~Task_4同时进行)运行一段时间后,1天或者2天,时间久了程序就不动了,也不清楚是不是卡死了,串口也没有提示任何错误信息。
好的,我现在吧JTAG接着,在DEBUG模式下跑着,希望可以定位到原因