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)
已解决! 转到解答。
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
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