S32DS3.5 optimize cause CAN bus-off issue

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

S32DS3.5 optimize cause CAN bus-off issue

624 次查看
Ali22
Contributor III

Dears

Recently, I meet a strange issue that when I set the S32DS3.5 optimization level to -O2

1.jpg.png

After set the optimization level to -O2, the CAN goes to bus-off status, but there is no bus-off event happen, so I wonder why setting the S32DS3.5 optimization level can cause CAN module enter bus-off, anyone who meet this issue or who can explain the relationship between optimization level and CAN bus-off? Thanks.

1.jpg.png

标记 (1)
0 项奖励
回复
1 回复

607 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ali22

From the register configuration you provided, the BUS-OFF state occurred and the ERRINT bit was set, but you did not enable the corresponding interrupt flags: CTRL1.BOFFMSK and CRTL1.ERRMSK

Senlent_0-1751508762528.pngSenlent_0-1751508762528.png

 

0 项奖励
回复