This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28335 ECAN problem



I have a project which uses CAN bus on the F28335 processor. I've been having an issue in which the MSGID for the particular mailbox is erased when a message is received. For example, if the MSGID = 0x300 on CANA, MBOX0, when I send it a message to that MSGID, even from a device external of the processor, the MSGID value is erased and the message is not read. However, if the MSGID sent to the channel is 0, the MSGID is erased and the message is read correctly. Any ideas on how the MSGID might be erased, such as an interrupt I am missing when a message is sent?

Thank you all,

Ryan

  • I think you should provide more information such as your initialization of the eCAN model. If you use the 2833x_eCAN.c of TI, then the initalization is for eCAN rather than standard CAN bus. So, you should care about the bit config of MSGID since there is one bit which will have a effect on the extend ID.
  • Thank you for the advice. Based on it, I eventually realized I was not writing to the standard identifier, but to the full MSGID... Everything worked properly when testing from CANA to CANB as the same problem was common on both channels, as the MSGID was both 0, although originally appeared to be what I assigned it simply based on how the watch was configured. Small issues take the most time :-)