UCM-iMX95 Yocto Linux: CAN
CAN bus
CAN bus interface is available on the evaluation board on header P17.
For more details, please refer to the Hardware Guide
Operation Example
- Obtain another board with CAN
- Short jumper E6
- Connect:
DUT Device 2 CAN_H (pin 2) -------- CAN_H CAN_L (pin 6) -------- CAN_L
- Configure both CAN interface bit-rate to 1 Mbit/sec:
ip link set can0 up type can bitrate 1000000
- On both system, listen to received data frames as well as error frames:
candump any,0:0,#FFFFFFFF &
- Send data from one system and expect to receive it on the other:
- Standard frame:
cansend can0 111#1122334455667788
- Extended frame:
cansend can0 11111111#1122334455667788
- Generate 50 random extended frames with 50 msec interval between each:
cangen -g 50 -e -D r -v can0 -n 50
- Disable the interfaces:
ip link set can0 down