TQMa91xxCA - YOCTO Linux BSP documentation
CAN
The MBa91xxCA provides one CAN interface: CAN1.
CAN Configuration
DIP switch S4 is used to configure CAN1.
| Function | 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 |
CAN Interface Location
CAN Loopback Test
Since the MBa91xxCA only has one CAN interface, the loopback mode for this specific interface has to be enabled before a loopback test.
ip link set can0 down ip link set can0 type can loopback on ip link set can0 up
After enabling loopback mode, the can loopback test can be done as follows:
candump can0& cansend can0 123#1122334455667788