Now I use Traveo ii CYB2T7 to USE canbus Interrupt

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

cross mob
lock attach
Attachments are accessible only for community members.
Bill-li
Level 1
Level 1
5 sign-ins First reply posted First question asked

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
Moderator
50 replies posted 50 sign-ins 25 solutions authored

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