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.

TMS320F280039C: Problem with Bus-off flag bit in MCAN module

Part Number: TMS320F280039C

Hello, Ti engineers.
I had a problem using the MCAN module of 280039. As you can see from Figure 1, I sent a CANFD frame of 8 bytes. Before sending, I short-circuited CAN-H and CAN-L together, which caused a sending error. The TEC value in the MCAN_ECR register adds up to 248. But the BO position in the MCAN_PSR register is 1. Therefore, I would like to ask if the Bus-off fault will be reported only after it is accumulated to 255 in CANFD? Why is there a Bus-off on 248?

  

  • Hi Zhen,

    1.) Do you have a bus-off recovery in your code?  MCAN does not have an automatic bus-off recovery so I am inquiring about this just to confirm.

    2.) Shorting CAN-L and CAN-H together is not a good way to induce bus-off condition.  Mechanically shorting wires can create several glitches whose durations may vary.  A better alternative is to intentionally mismatch the baudrate of the F280039 MCAN to the receiving node, then observe the MCAN error counters.

    Regards,

    Joseph