Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

TRAVEO™ T2G

Bill-li
Level 1
First reply posted First question asked First like given
Level 1

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

0 Likes
1 Solution
yanf
Moderator
Moderator 50 replies posted 50 sign-ins 25 solutions authored
Moderator

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. 

yanf_0-1634541181063.png

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

 

View solution in original post

5 Replies