Not enter CAN error callback function

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

Not enter CAN error callback function

568件の閲覧回数
LJS10045
Contributor I

I'm using S32DS 3.5 with RTD 4.0, chip is S32K311.

I already install CAN0_ORED_IRQHandler and create an error callback function.

But I found that when I disconnect to CAN BUS, it didn't enter error callback function.

Does anyone encounter this problem, how can I solve it?

LJS10045_0-1708588007426.png

LJS10045_1-1708588056919.png

 

 

0 件の賞賛
返信
3 返答(返信)

547件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

what error condition have you tested? Try to e.g. send a message, with bus disconnected you should get ACK error and if all is configured well callback should be entered.

BR, Petr

0 件の賞賛
返信

537件の閲覧回数
LJS10045
Contributor I

Hi @PetrS 

I tried to send can message with disconnect to bus.

It's status return FLEXCAN_STATUS_BUSY, I don't know that if it will enter the ERROR Callback or not?

 

0 件の賞賛
返信

465件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, with FlexCAN connected to terminated CAN transceiver but disconnected from CAN bus after sending message you should get ACK error, thus callback should be called. Checking MB status will return FLEXCAN_STATUS_BUSY as message was not transmitted without error.

BR, Petr

0 件の賞賛
返信