CAN bus cannot transmit complete interrupt
I try to use all Interrupt for can
can erro and can RX can be use
but can TX all Interrupt invalid。
i need this to clear busoff flag
Solved! Go to Solution.
OKay, in this case, there might be some problems with your TX interrupt handler.
Can you double check your CAN_TxMsgCallback function? Is that successfully implemented in main.c?
Here is a demo call back function, RxMsgCallback. I put it here for your reference.
Meanwhile, don't forget to update your canCfg configuration struct. The .txCallback feild is set to NULL by default, but you want to set it to your interrupt handler (namely CAN_TxMsgCallback())
Check if these changes bring it back to work.
Kind Regards,
Finn