AnsweredAssumed Answered

How to use can_receive on LPC11C24?

Question asked by Yuzuru Mizuno on Jan 9, 2018
Latest reply on Oct 9, 2018 by jeremyzhou

Hi there,


I'm new to CAN and NXP uC.

I'm now trying to use CAN on LPC11C24.

So far sending data from LPC11C24 successfully worked very easily. 

What I would like to know is how to handle and see the content of message which LPC11C24 received.

Let's say the other side node sends two bytes data and LPC11C24 receives it.

I would like to process the 2 bytes data in my codes.

I just added below codes to the example one but it does not work.


//variable declaration

uint8_t received_message=0;


/* Configure message object 1 to receive all 11-bit messages 0x400-0x4FF */
msg_obj.msgobj = 1;
msg_obj.mode_id = 0x400;
msg_obj.mask = 0x0;

//receive message
received_message =[0];

Could somebody kindly advice me how to use can_receive or give some example?


Thank you very much.