FlexCAN bus error handling?

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

FlexCAN bus error handling?

ソリューションへジャンプ
580件の閲覧回数
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 解決策
566件の閲覧回数
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 返答(返信)
546件の閲覧回数
reymor
Contributor I

Thanks PetrS  

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