Hi,
I'm using TMS320F28335 DSP controller.
I'm using the eCAN module and I have a strage bug that looks like a reported errata.
Errata: http://www.ti.com/lit/er/sprz272g/sprz272g.pdf , eCAN: Abort Acknowledge Bit Not Set
My problem seems to be the same described in the errata but instead to be when TRR is set it is when TRS is set.
I noticed that sometimes when I set TRS to transmit a message, it is cleared and TA is not set.
Here's the code that I used to find the problem:
ECanaShadow.CANTRS.all = 0;
ECanaShadow.CANTRS.bit.TRS16 = 1; //Set TRS for mailbox
ECanaRegs.CANTRS.all = ECanaShadow.CANTRS.all;
do
{
ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
}while(!ECanaShadow.CANTA.bit.TA16); //Wait for TA16 bit to be set
Does anyone encountered this problem?
Any suggestion ?
Thanks