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.
Hi,
When we test the DCAN driver sleep and wakeup funciton, we found that bus-off will generate during the process, sleep and wakeup seems woke normally , but when we execute the sleep-wakeup 20 times continuously , then bus-off will generate at least one time during the process.
So why bus-off generated? Hope your suggestions.
BR, Thanks
Ming
Hi Ming,
If a CAN controller fails or if there are extreme accumulations of errors (TEC, or REC in ERRC register), a state transition is made to the Bus Off state. The CAN controller disconnects from the CAN bus.
The CAN protocol defines 5 mechanisms to detect the corrupted messages: bit monitoring, form check, stuff check, ACK check, and CRC check. The bit monitoring and ACK check are performed by the sender. The receiver performs the form check, stuff check, and CRC check. Whenever the tx error counter exceeds the value of 255, it will switch to the bus-off state.
This maybe caused by your setup, the sleep-wakeup sequence. Is the bus-off only for the sleep-wakeup node, or other node?
Hi,
The TEC=0xF8, and REC=0, every time when the process inter bus-off status and BOFF= 1. and the value of error status REG is 000002E7.
1, why TEC is not 255 in bus-off status?
2, why WakeUpPnd not reset after read the error status REG?
3, where can I find some DCAN demo code for bus-off and sleep-wakeup, in TI websit , polling mode will be better.
BR, and Thanks
Ming
Hi,
Yes we use the CAN bus message wakeups, set the WUBA .
What about the Bus-Off and Recovery process, especially the Recovery process, the operation steps when enable ABO and operation steps not enable ABO.
Thanks and Best Regards.
Ming