CAN transmit and receive example code for MPC5644 or similar

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

CAN transmit and receive example code for MPC5644 or similar

1,425 Views
kentabacchi
Contributor I

I was wondering if there is an example for MPC5644A to manage CAN transmit and receive, like the following which is for MPC5744P.

 

https://community.nxp.com/docs/DOC-104151

 

I was looking through that example when I noticed that the register set is different than the part I am using.

Labels (1)
0 Kudos
3 Replies

800 Views
kentabacchi
Contributor I

Thanks Martin for uploading that.

Do you know if there is any way to monitor all traffic on the CAN bus, not just filtering by a given ID?  From the 5644A Reference Manual chapter on the FlexCAN module:

pastedImage_0.png

0 Kudos

800 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

if you set Rx Global Mask Register to 0x00000000 (in case you do not use individual masking),  or you set individual mask registers to 0x00000000 then the received ID's are not checked against the mask registers and you are able to receive message with any ID.

Regards,

Martin

0 Kudos

800 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

I am sending you simple example in the attachment. If you have any question about it, please feel free to write me back.

Regards,

Martin

0 Kudos