TQMa93xxLA - YOCTO Linux BSP documentation


CAN

The MBa93xxLA provides the CAN interfaces CAN1 and CAN2.

CAN configuration

DIP switch S4 is used to configure the CAN1 interface.

Funktion S4-1 S4-2
CAN-Bus not terminated OFF OFF
not defined (illegal state) OFF ON
not defined (illegal state) ON OFF
CAN-Bus terminated with 120 Ohm ON ON

DIP switch S5 is used to configure the CAN2 interface.

Funktion S5-1 S5-2
CAN-Bus not terminated OFF OFF
not defined (illegal state) OFF ON
not defined (illegal state) ON OFF
CAN-Bus terminated with 120 Ohm ON ON

CAN Loopback

CAN1 (Hardware) -> CAN2 (Hardware)

In Linux, this corresponds to can0 sending to can1:

candump can1 &
cansend can0 5A1#1122334455667788


CAN2 (Hardware) -> CAN1 (Hardware)

In Linux, this corresponds to can1 sending to can0:

candump can0&
cansend can1 5A1#1122334455667788