mpc5748 flexcan receive interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mpc5748 flexcan receive interrupt

2,092 次查看
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,923 次查看
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,923 次查看
gangzhou
Contributor II

Thank you very much! 

0 项奖励
回复