Hello,
We’re trying to enabling CAN on our own PCB. PCB uses a i.MX8 Plus SOM and additional circuitery to allow CAN bus communication.
Selected pins to operate are the same pins used in HummingBoard IIOT.
We’ve modified our dtb CAN definition using the HummingBoard IIOT dtb (Get from the original image). So we programmed CAN pins and regulators.
Linux sr-imx8 5.10.72-imx8-sr boots fine and we can configure can0 using ip link commands.
can0 is available and interface is up.
[ 175.233021] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
and interface is up
4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP group default qlen 10 link/can
From this, we use can-utils to test it.
On send packet, no data is sent and a bus-off is reported.
root@sr-imx8:~# cansend can0 123#1122334455667788
[ 653.571492] can: controller area network core
[ 653.575955] NET: Registered protocol family 29
[ 653.587580] can: raw protocol
root@sr-imx8:~# [ 653.599579] flexcan 308c0000.can can0: bus-off
I’ve tryed disconnecting the receptor node. In this way PCB would be sending continuously, but the result is the same. Always send Bus-off .
We apreciate any suggestion.