FlexCAN bus error handling?

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

FlexCAN bus error handling?

Jump to solution
439 Views
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 Kudos
1 Solution
425 Views
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

View solution in original post

2 Replies
405 Views
reymor
Contributor I

Thanks PetrS  

0 Kudos
426 Views
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