[mpc5744p] flexcan bus-off error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[mpc5744p] flexcan bus-off error

740 Views
filib
Contributor I

Hi All, 

I have a question about flexcan error interrupt handling. Two interrupts are enabled: Bus off (CAN_CTRL1[BOFFMSK]) and error interrupt (CAN_CTRL1[ERRMSK]). Is it possible that bus off interrupt can come without general error interrupt(CAN_ESR1[ERRINT] && CAN_ESR1[BOFFINT])? 

Is this condition possible?

if (CAN_ESR1[ERRINT] == 0 && CAN_ESR1[BOFFINT] == 1) ...

Thank you in advance for your help.

Filip

0 Kudos
1 Reply

492 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if BOFFINT is set the ERRINT is set too, but it can be cleared independently, so it can happen you see

ERRINT=0 & BOFFINT=1. 

BR, Petr

0 Kudos