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.

TM4C123BE6PM: CAN Status (CANSTS) Last Error Code,

Part Number: TM4C123BE6PM

Hi,

I am trying to understand the CAN Bus registers, the CAN Status (CANSTS) register has Last Error Code(LEC) bits
to describe the Last Error occurred on the CAN bus.
I couldn't understand 0x7(No Event) error, the register description mentions that "no CAN bus event was
detected since this value was written to the LEC field". Please let me know what does this error means and
that what does it mean by CAN bus event.

Does it mean No CAN bus event was detected since the last time when CPU has read the Status Register?

Best Regards
paddu

  • The user can write the value 0x7 to the LEC bits. When a CAN frame is received or sent, the CAN controller will change the 0x7 to 0x0 if the frame is without error or to one of the values 0x1 to 0x6 if an error was detected.