KV11 CAN Disable Receiving Transmitter Packets (echo)

取消
显示结果 
搜索替代 
您的意思是: 
已解决

KV11 CAN Disable Receiving Transmitter Packets (echo)

跳至解决方案
646 次查看
abdullah_cinar
Contributor III

Hi,

I am trying to send and receive CAN packets between my MKV11Z64 and a custom CAN device. I disabled ID filtering, so I am receiving every packet coming from the CAN line. But the problem is I also receive the packets that I transmitted. I just want to receive the packets sent from the other device.

I attached the file that contains my CAN configurations. The echo mode is already disabled by the way.

标签 (1)
标记 (5)
0 项奖励
1 解答
507 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Abdullah,

Please check the value of CANx_MCR[SRXDIS]

CANx_MCR[SRXDIS].png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
2 回复数
508 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Abdullah,

Please check the value of CANx_MCR[SRXDIS]

CANx_MCR[SRXDIS].png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
508 次查看
abdullah_cinar
Contributor III

Hello Robin,

Thank you for your answer. I set the SRXDIS bit to 1 as you suggested. Below is the snippet for reference who finds this post. I needed to do it in FLEXCAN_Init() function in the fsl_flexcan.c file. Otherwise, it didn't work outside of this function.

mcrTemp |= (1 << 17); //disable self reception (CANx_MCR SRXDIS=1)
/* Save MCR Configuation. */
base->MCR = mcrTemp;

0 项奖励