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?
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
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?
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