NetBurner 3.5.8
PDF Version
CAN

Example Path: examples/PlatformSpecific/MODRT1171/CAN

MODRT1171 CAN Examples

The i.MX RT1171 has three FlexCAN controllers, and the MODRT1171 brings CAN-capable pins out on its module connectors. FlexCAN1 is the module's primary CAN bus – its pins are dedicated to CAN at both module revisions (P1.26/P1.27 on rev 1.5, moving to P2.41/P2.44 at rev 1.6) – and it is the bus all of these examples use. A design is not limited to one bus: FlexCAN3 is available on the I2C pins for designs that do not use I2C (or that bit-bang I2C on spare GPIO), and on rev 1.5 FlexCAN2 also reaches module pins. See the MODRT1171 Software Developer Guide for the CAN pin options and the MODRT1171 Pinout Update document for the rev 1.6 pin assignments.

These examples build on each other: start with the loopback test (no external hardware needed), then move to interactive send/receive on a real bus, then to monitoring the bus health. All three FlexCAN controllers also support CAN FD – payloads up to 64 bytes per frame and a faster data phase – demonstrated by the two CAN FD examples.