Hi,
Q: Is there any document like "FlexCANbitTiming.pdf" but for CAN-FD?
A: unfortunately not. You should use an info stated within Reference Manual or CAN-FD specification.
Q: I understood from Reference Manual that CAN-FD arbitration bit timing is affected by CAN_CTRL1 or CAN_CBT and data phase is affected only by register CAN_FDCBT, right?
A: Yes, you are right.
Q: Is the CAN module checking also the CRC of received frames? Is there a code to calculate CRC of CAN-FD frames of a non-iso can-fd?
A: There are different CRC polynomials for different CAN frame formats.
- CRC_15 … used for all frames in Classical CAN format.
- CRC_17 … used for frames in CAN FD format with a data field up to 16 bytes long.
- CRC_21 … used for frames in CAN FD format with a data field longer than 16 sixteen bytes.
The receivers use the same polynomial to calculate the check sum from the bits as seen on the bus-lines. Thus when receiving a message, FlexCAN decodes EDL and DLC to select the adequate CRC polynomial to check for a CRC error.
BR, Petr