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
Does S32K142 mcu support CAN FD frame?
yes, we use CAN0 in S32k142EVB, but it reports error frame, Could you provide investigation direction? why this issue happen?
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
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.
1.buardrate speed
this is the same as 2M.
2.sampling point
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.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
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?
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