Greetings,
I am trying to get CAN communication on the Linux portenta x8 and the breakout board.
So far I am able to setup the can devices (can0 & can1). They are visible and up when doing ifconfig query. We are using a waveshare CAN board.
I am not able to send any CAN traffic with cansend. No error reported but no traffic seen on the other end.
candump is not showing any packet received. A different node on the CAN bus is seeing the traffic.
So far I can't find any documentation on how the CAN interface is supposed to work when using the breakout board.
Any help or pointer is appreciated.
Thanks!
--Haroun
Post your annotated schematic if swapping CAN_H and CAN_L does not resolve the problem. Also post your code using code tags.
@gilshultz Thanks for your reply. Swapping CAN_H and CAN_L did not solve the problem.
The setup is very basic. Just connecting the CAN board to the Portenta breakout board at CAN0 pins. Please check attached diagram. I used the 3.3v because the CAN board uses 3.3V
For the commands I am using can-utils to send and receive data.
sudo ip link set can0 type can bitrate 500000
sudo ip link set up can0
sudo ifconfig can0 txqueuelen 1000
// for receiving
candump can0
// for send test
cansend can0 222#01020304
Thanks again for the help
What CAN adapter are you using, the tiny picture does not show what it is.

