I am trying to test Seeed 2 Channel Shield. I installed CAN-HAT as follow:
$ git clone https://github.com/seeed-Studio/pi-hats
$ cd pi-hats/CAN-HAT
$ sudo ./install.sh
$ sudo reboot
$ sudo ip link set can0 up type can bitrate 250000
$ sudo ip link set can1 up type can bitrate 250000
can1 works fine as it prints out only a single line of can1 7DF [4] DE AD BE EF on the terminal when trying: cansend can1 7DF#DEADBEEF.
But when I try the same to can0: cansend can0 7DF#DEADBEEF, the terminal reads the same message repeatedly for infinite times and it never stops until I escape:
...
can0 7DF [4] DE AD BE EF
can0 7DF [4] DE AD BE EF
can0 7DF [4] DE AD BE EF
can0 7DF [4] DE AD BE EF
can0 7DF [4] DE AD BE EF
can0 7DF [4] DE AD BE EF
can0 7DF [4] DE AD BE EF
can0 7DF [4] DE AD BE EF
...
and the following messages are shown
pi@raspberrypi:~ $ dmesg | grep spi
[ 4.632813] mcp25xxfd spi0.0: MCP2517 successfully initialized.
[ 4.803697] mcp25xxfd spi1.0: MCP2517 successfully initialized.
[ 72.980247] mcp25xxfd spi0.0: Controller unexpectedly switched from mode 0 to 6
[ 119.627107] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.639785] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.647272] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.647622] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.652326] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.678204] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.692710] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.767581] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.807058] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.812657] mcp25xxfd spi0.0 can0: CAN Bus error experienced
[ 119.832261] mcp25xxfd spi0.0 can0: CAN Bus error experienced
...
I am not sure if this is a HW or CAN-HAT problem.
Have anyone experienced the same or something similar?
I am trying to test Seeed 2 Channel Shield. I installed CAN-HAT as follow:
can1
works fine as it prints out only a single line ofcan1 7DF [4] DE AD BE EF
on the terminal when trying:cansend can1 7DF#DEADBEEF
.But when I try the same to
can0
:cansend can0 7DF#DEADBEEF
, the terminal reads the same message repeatedly for infinite times and it never stops until I escape:and the following messages are shown
I am not sure if this is a HW or CAN-HAT problem. Have anyone experienced the same or something similar?