S32K142 flexcan dominant detection

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

S32K142 flexcan dominant detection

跳至解决方案
647 次查看
FanJialin
Contributor II

Hello,

I used flexcan's RxFIFO for CAN development.

How can I detect dominant time-out through flexcan or other methods.

What interrupts or interfaces does flexcan have?

Dominant time-out refers to the detection of the SOF segment of the CAN frame as shown in the figure

20240408-104648.jpg

0 项奖励
回复
1 解答
583 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) No, just IDLE, TX and RX bits of ESR1 shows that something is on the bus.
2) there is no indication for a message that is not matched in neither MB nor RXFIFO, frame is lost.

BR, Petr

在原帖中查看解决方案

3 回复数
620 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

why would dominant time-out refer to the detection of the SOF segment? SOF is single dominant bit and is normally detected by module. Long time dominant condition will be detected via stuff or form errors and error interrupt will be called if enabled. Module tolerates 5 consecutive dominant bits then stuff bit (opposite level) must be detected.
Dominant time out feature is obviously implemented on CAN transceiver to disable transmitter when TXD line is held low for extended/defined time, so a node will not disturb bus anymore.

BR, Petr

591 次查看
FanJialin
Contributor II

Sorry, there was an error in my description. Let me rephrase the problem.
1.Can flexcan notify me through interrupts or other means when it changes from an recessive state to an dominant state on the CAN bus.
2.Can flexcan notify me through interrupts or other means when receiving frames outside of the filter.

0 项奖励
回复
584 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) No, just IDLE, TX and RX bits of ESR1 shows that something is on the bus.
2) there is no indication for a message that is not matched in neither MB nor RXFIFO, frame is lost.

BR, Petr