This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652R: 如何查看任务运行情况?

Part Number: CC2652R
Other Parts Discussed in Thread: CC1352P

TI达人:

        我在project_zero任务重中增加一个新任务Sensors_taskFxn,中间屏蔽掉了所有传感器的service,使用一个软定时来运行 profile_readSensor(),内容是ADCBuf_convert转换,发现运行10分钟后Sensors_taskFxn该任务运行异常,但是问题在哪里无从下手!使用LOG 查看运行到这个函数Util_enqueueMsg(Queue_Handle msgQueue,Event_Handle event,uint8_t *pMsg)后面就卡死,消息队列和事件发布是否成功就不知了!但是ProjectZero_taskFxn任务运行一直正常。后面直接在profile_readSensor()打印一条LOG还是卡住。

     ProjectZero_taskFxn 任务优先级为2 ,Sensors_taskFxn任务优先级为1,两个任务的消息队列事件 PZ_READ_RPA_EVT和SC_DEFERRED_EVT已经修改不存在冲突,这两个任务的阻塞 事件都使用的是 Event_Id_30,这里也是参考 multi_sensor这个例程。                

    events = Event_pend(syncEvent, Event_Id_NONE, SC_ALL_EVENTS, ICALL_TIMEOUT_FOREVER);      #define SC_ALL_EVENTS  Event_Id_30

     期待你们的回复!谢谢!