mpc5748 flexcan receive interrupt

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

mpc5748 flexcan receive interrupt

862 Views
gangzhou
Contributor II

Hi,

I use dev kit and Peak usb-@can adapter.

I have two MBs setup for transmit and receive by CAN0. MB[0] for transmit and MB[4] for receive.besides,I used a receive interrupt.But,transmit just use the polling.The core always enter receive interrupt and MB[0] receive the same data that transmitted by MB[0] . CAN_IFLAG1 value is 0X00000011 when the breakpoint works at the entrance of receive interrupt.
I dont config the loopback mode.I do not know what is wrong?How should I do?b55689

Labels (1)
0 Kudos
2 Replies

693 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

seems the Self Reception is enabled, so the module receives frames transmitted by itself if RX MB is programmed with an ID that matches the TX frame.

So set the MCR[SRXDIS] bit, must be done during Freeze mode.

BR, Petr

0 Kudos

693 Views
gangzhou
Contributor II

Thank you very much! 

0 Kudos