[mpc5744p] flexcan bus-off error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[mpc5744p] flexcan bus-off error

747件の閲覧回数
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 件の賞賛
1 返信

499件の閲覧回数
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 件の賞賛