mpc5748 flexcan receive interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mpc5748 flexcan receive interrupt

2,089件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,920件の閲覧回数
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 件の賞賛
返信

1,920件の閲覧回数
gangzhou
Contributor II

Thank you very much! 

0 件の賞賛
返信