Does S32K142EVB support to receive CAN FD frame?

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

Does S32K142EVB support to receive CAN FD frame?

1,418 次查看
liuxing_hu
Contributor III

we config CAN FD TX/RX interface by s32ds, and connect to a CAN FD network, it report error frame when receive CAN FD frame, it's ok when there is not CAN FD message to send to EVB

liuxing_hu_1-1711684701435.png

Does S32K142 mcu support CAN FD frame?

0 项奖励
回复
9 回复数

1,405 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@liuxing_hu

Yes, the S32K142EVB support CAN FD feature.

 

UJA1169 support CAN FD.

Senlent_0-1711692301486.png

 

FlexCAN0 support CAN FD.

Senlent_1-1711692387222.png

 

0 项奖励
回复

1,403 次查看
liuxing_hu
Contributor III

yes, we use CAN0 in S32k142EVB, but it reports error frame, Could you provide investigation direction? why this issue happen?

0 项奖励
回复

1,400 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@liuxing_hu

You can provide me your code and I will help you reproduce and test it

0 项奖励
回复

1,394 次查看
liuxing_hu
Contributor III

I'm afraid it's difficult to provide code, it won't reproduce in my own test environment using Canoe, it only can reproduce when connecting with other nodes that sends CAN FD frames

0 项奖励
回复

1,390 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@liuxing_hu

If you can communicate with CANoe normally, it means there is no problem with S32K142EVB. The possible reasons can be considered to be caused by factors such as buardrate speed, sampling point and terminal resistance.

0 项奖励
回复

1,380 次查看
liuxing_hu
Contributor III

1.buardrate speed

this is the same as 2M.

2.sampling point 

 

liuxing_hu_3-1711704315902.png

sample point of CAN FD is the same, but sample point of CAN is different, does it cause error frames?

3.terminal resistance

I see there is 120 terminal resistance inside S32k142EVB, do I need add another 120 terminal resistance at canoe hardware side ?

标记 (1)
0 项奖励
回复

1,315 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@liuxing_hu

1.The sample poing for the CAN FD data phase should be the same in all nodes of the network.

so please modify the CAN FD data phase and then try again.

2.If the above modification still has not solved your problem. then try add another 120 terminal resistance at canoe hardware side

0 项奖励
回复

1,306 次查看
liuxing_hu
Contributor III

1.Does it matter that the sample point for the CAN FD arbitration phase is different in all nodes of the network?

2.what does the "Number of buffers" means? Does it matter that set it to 6?

liuxing_hu_0-1711943468766.png

 

标记 (1)
0 项奖励
回复

1,299 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@liuxing_hu

1.Yes, the sample point for the CAN FD arbitration phase should be configured to the same position in all nodes of the network.

2.this does not affect.

If you set it to 6, the range of message buffer(MB) that can be used is 0~5.
In fact, if the payload is set to 64 byte, the maximum usable MB range of S32K1 can be 0~7

0 项奖励
回复