Not enter CAN error callback function

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Not enter CAN error callback function

325 次查看
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 回复数

304 次查看
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 项奖励
回复

294 次查看
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 项奖励
回复

222 次查看
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 项奖励
回复