Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5786

Troubleshooting • CAN BUS Motors not initializing (Device not found)

$
0
0
Hello, we are using 2 CAN Bus Motors (link below) to a Raspberry Pi 4 Model B. Then, when trying to initialize the motors, only one of them initializes while the other always says: Device can1 cannot be found.

When doing the command:

Code:

dmesg | grep -i can

Code:

[    9.741468] mcp251x spi0.0 can0: MCP2515 successfully initialized.[    8.499928] mcp251x spi0.1: Cannot initialize MCP2515. Wrong wiring?[    8.503873] mcp251x spi0.1: Probe failed, err=19
We checked the wiring multiple times and also tested the wires continuity and it all seems okay.

Here is our config.txt settings:

Code:

dtparam=spi=ondtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25,spimaxfrequency=500000dtoverlay=mcp2515-can1,oscillator=8000000,interrupt=24,spimaxfrequency=500000dtoverlay=spi-bcm2835
We double checked the crystal oscillator on both mcp2515 and it is 8MHz. We also tested the spi communication using spidev and it has the correct output. And also tested one individual mcp2515 to see if each works and it does. So we're really confused on the problem. I'd appreciate any tips because we are lost so far.

Statistics: Posted by CrabbyPatty — Thu Nov 28, 2024 7:21 am



Viewing all articles
Browse latest Browse all 5786

Trending Articles