chipKIT® Development Platform

Inspired by Arduino™

chipkit network shield not recieving CAN messages

Created Tue, 22 Dec 2020 11:59:33 +0000 by sundar@19


sundar@19

Tue, 22 Dec 2020 11:59:33 +0000

Hi, I am connecting my chipkit network shield to a motor controller. I try to send data which is successful. But when I try to recieve data

void
rxCAN1(void) {
 
  CAN::RxMessageBuffer * message;
  
  if (isCAN1MsgReceived == false) { 
    /* CAN2 did not receive any message
     * so exit the function. Note that the
     * isCAN2MsgReceived flag is updated 
     * by the CAN2 ISR. */
     Serial.print("RxCAN didnt recieve message..."); 
    return;
  }

I am stuck within that loop , please help!!