I have attached error file which I am getting while using interrupt , can anyone please provide me solution for it.
See the snapshot below. The ISR inside the pragma segment in CAN1.c source file must be available (out of comment; not in red)
You can use the following code inside the ISR to service the CANRx interrupt:
unsigned char length, index;
unsigned char rxdata;
length = (CAN0RXDLR & 0x0F);
for (index=0; index<length; index++)
rxdata[index] = *(&CAN0RXDSR0 + index); /* Get received data */
CAN0RFLG = 0x01; /* Clear RXF */
Hopefully the info helps.
Retrieving data ...