In MSCAN Receiver Flag Register (CANRFLG), to monitor the Bus-off state which bits should we use in our software? In CANRFLG register, bits - RSTAT[1:0] or TSTAT[1:0] should we use to get the Bus-off status ?
Hello Pratibhasurabhi,
This MCU has implemented the MSCAN_V3 so you need to monitor TSTAT[1:0] bits the decode the Bus-off state. The information in RSTAT[1:0] is redundant as mentioned under Table 13-10 in RM. You can use the automatic recovery mode or use the BORM = 1 for recovery upon user request.
I hope it helps you to solve your issue.
Have a nice day.
Stano.