Hi!
I used below recommended code to send a msg
ECanaShadow.CANTRS.all = 0;
ECanaShadow.CANTRS.bit.TRS29 = 1; // Set TRS for mailbox under test
ECanaRegs.CANTRS.all = ECanaShadow.CANTRS.all;
do
{
ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
} while(ECanaShadow.CANTA.bit.TA29 == 0 ); // Wait for TA bit to be set..
ECanaShadow.CANTA.all = 0;
ECanaShadow.CANTA.bit.TA29 = 1; // Clear TA
ECanaRegs.CANTA.all = ECanaShadow.CANTA.all;
my F28335 board is communicating with another board which has M3 chip. and on the can bus there is a can analysis node
It is very easy to stuck at the 'do while' loop above. Below is a typical scenario:
1. restart M3 board
the CAN register value are shown in the graph yet I did not find a clue
Do I need to enable any interrupt to handle this? Thank you.
Regards,
Leon