Hi,
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:
ISR(CANRxISR)
{
unsigned char length, index;
unsigned char rxdata[8];
length = (CAN0RXDLR & 0x0F);
for (index=0; index<length; index++)
rxdata[index] = *(&CAN0RXDSR0 + index); /* Get received data */
CAN0RFLG = 0x01; /* Clear RXF */
}
Hopefully the info helps.
Regards.
iggi