FlexCAN bus error handling?

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

FlexCAN bus error handling?

跳至解决方案
465 次查看
reymor
Contributor I

Hello, 

We use

- S32K144W

- S32DS 3.3

- SDK RTM 4.0.1

- CAN without FD

Maybe this is something wrong, but in which context CANx_Error_IRQHandler is called?

Is there any example for handling CAN bus errors using the FlexCan driver? 

Basically, we disconnect the CAN bus which means an aknowledge error, but it is never called. We have introduced error in the bus and this fuctions is never called

reymor_0-1707164791092.png

We saw that in FLEXCAN_EnableIRQs::L617 the IRQ is enabled. However, we are not sure in which context CANx_Error_IRQHandler is called

Thanks in advance,

 

0 项奖励
1 解答
451 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tested error interrupt/callback using below example, I posted. It is using older SDK, but it should be similar, I guess.

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-TX-RX-Error-ISR-test-S32DS2...

BR, Petr

在原帖中查看解决方案

2 回复数
431 次查看
reymor
Contributor I

Thanks PetrS  

0 项奖励
452 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tested error interrupt/callback using below example, I posted. It is using older SDK, but it should be similar, I guess.

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-TX-RX-Error-ISR-test-S32DS2...

BR, Petr