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.

TMS570LS3137CAN通信遇到问题了,我用上位机PC端发送数据到tms570的上 ,不确定有没有收到 ,但是单步调试的时候tms570有数据发送到上位机。我想这个问题我该怎么解决?求大神指点。

Other Parts Discussed in Thread: TMS570LS3137

在调试的时候,TMS570LS3137作为下位接收数据,但是单步调试的时候 ,一直卡在while(!canIsRxMessageArrived(canREG1,canMESSAGE_BOX1))这里循环,一下是主程序中的一些代码。请指教! 

canEnableErrorNotification(canREG1);
   OSTimeDly(100);
 
  while(!canIsRxMessageArrived(canREG1, canMESSAGE_BOX2));
ch_cc= canGetData(canREG1, canMESSAGE_BOX1, rx_data); 
     OSTimeDly(100);
     canTransmit(canREG1, canMESSAGE_BOX1, tx_ptr);