MX Foundation 4
CAN FD

Newest hardware revision of device supporting CAN with MX Foundation version 4.4.0 and later also supports CAN FD.

Both ISO and non-ISO CAN FD are supported.

Most of the code used for CAN works the same way in CAN FD, except for a few specific CAN FD attributes and functions that have been added.

By default, the CAN module is set to classical CAN and this can be changed with the KMXF_CANBUS_MODULE_MODE attribute.

When KMXF_CANBUS_MODULE_MODE is set to VMXF_CANBUS_MODULE_MODE_CAN_FD, the KMXF_CANBUS_FD_MODE attribute can be used to select between ISO and non-ISO version.

The bus timing is set with the mxfCanBusFdTimingSet() function to set bus timing for both nominal and data phase.



Example

The example below shows how to implement an CAN FD basic application.

can_fd.c

Updated 10/23/2023