Hi,
I am using the FlexCAN on the FRDM-K64 demo board starting from the example.
It happened several times that the internal controller stall on TxBusy status and I am no longer able to send any packets. How should this situation be managed and restore the correct functioning of the CAN controller inside the micro? In the example the callback only manages the RxIdle and TxIdle states.
Thank you very much!
Hello Fabio Benevento
The TxBusy can be caused because the Tx is not being listened. It could be helpful if you detail me the value of the CANx_ESR1 register.
Also, make sure that the loopback mode is active, the ID from Rx and Tx needs to match.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar