LPC Xpresso 11c24 CAN extended not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC Xpresso 11c24 CAN extended not working

564 Views
sridharan
Contributor II

Hi,

 

I am using LPCXpresso (11c24) board for CAN communication, I am able to transmit standard ID , however when I try to transmit extended ID ,I find no response, I am using the demo sample codes . Can any one help . PFA

 

Below is the code snip where I suspect demo code problem. 

 

id = id & _EXT_FORMAT;

LPC_CAN->IF1_MSK1 = (id & _MSK1_MSK);
LPC_CAN->IF1_MSK2 = (id >> 16) | _MSK2_MXTD;

LPC_CAN->IF1_ARB1 = (id & _ARB1_ID);
LPC_CAN->IF1_ARB2 = (id >> 16) | _ARB2_XTD | _ARB2_MSGVAL;

Original Attachment has been moved to: CAN-Stepper-LPC11C24-master.zip

Original Attachment has been moved to: CAN.zip

Labels (1)
0 Kudos
Reply
1 Reply

396 Views
jeremyzhou
NXP Employee
NXP Employee

Hi sridharan TechM,

I've replied in the CAN Extended ID not able to receive
Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply