Not enter CAN error callback function

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

Not enter CAN error callback function

306 Views
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 Kudos
Reply
3 Replies

285 Views
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 Kudos
Reply

275 Views
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 Kudos
Reply

203 Views
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 Kudos
Reply