[mpc5744p] flexcan bus-off error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

[mpc5744p] flexcan bus-off error

750 次查看
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 回复

502 次查看
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 项奖励