KV11 CAN Disable Receiving Transmitter Packets (echo)

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

KV11 CAN Disable Receiving Transmitter Packets (echo)

ソリューションへジャンプ
1,029件の閲覧回数
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 解決策
890件の閲覧回数
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 返答(返信)
891件の閲覧回数
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 件の賞賛
891件の閲覧回数
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 件の賞賛