S32144-CAN_SRXDIS

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

S32144-CAN_SRXDIS

跳至解决方案
988 次查看
Junkie
Contributor I

I try to use FlexCAN MB0 to receive CAN frames transmitted  by itself-MB1, just like describled in RM "when MCR[SRXDIS] is deasserted, FlexCAN can receive frames transmitted by itself if a matching Rx mailbox exists. "

i initlization CAN0 normally and corrsponding pin, and clear MCR_SRXDIS, configure MB0 with ID 0x3AA, MB_CS_CODE = EMPTY, and then configure MB1 with ID 0x3AA, data0~8 bytes, MB_CS_CODE = DATA.But it does not work, PTB1 does not stop transmit frames, but FlexCAN can not received.

(CAN transceiver is connected)

0 项奖励
回复
1 解答
981 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure SRXDIS is really cleared, can be written in Freeze mode only.
Also note that only successfully transmitted message without error will be self-received. So for example if other node does not ACK a message it is repeated still and it is not received. Which is probably you have.

BR, Petr 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
982 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure SRXDIS is really cleared, can be written in Freeze mode only.
Also note that only successfully transmitted message without error will be self-received. So for example if other node does not ACK a message it is repeated still and it is not received. Which is probably you have.

BR, Petr 

0 项奖励
回复
973 次查看
Junkie
Contributor I
yes, your are right !
Thank you very much !
0 项奖励
回复