AnsweredAssumed Answered

CAN Extended ID not able to receive

Question asked by sridharan j on Apr 23, 2017
Latest reply on May 1, 2017 by sridharan j

Hi,

 

I am using CAN sample code to receive CAN packet, I am able to receive std ID packet, however I am not able to receive any extended ID , I am able to see the data loaded into ARB1/2 registed but why CAN handlers is not enter if found.

 

Can Anyone please help me.

Below is piece of code where I am editing changes for extended ID receive in CAN configure().

 

/* Mxtd: 1, Mdir: 0, Mask is 0x1FFFFFFF */
LPC_CAN->IF1_MSK1 = ID_EXT_MASK & 0xFFFF;
LPC_CAN->IF1_MSK2 = MASK_MXTD | (ID_EXT_MASK >> 16);

/* MsgVal: 1, Mtd: 1, Dir: 0, ID = 0x100000 */
LPC_CAN->IF1_ARB1 = (RX_EXT_MSG_ID+i) & 0xFFFF;
LPC_CAN->IF1_ARB2 = ID_MVAL | ID_MTD | ((RX_EXT_MSG_ID+i) >> 16);

Outcomes