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

Troubleshooting • pi5 cant find can1

$
0
0
Hello everyone, I have a new pi5 and I'm in need of some assistance. I have a 2 channel can bus interface and I can only get the RPI to recognize 1 CAN.
I haven't gotten to any of the real work and I'm already chasing my tail!! any help would be greatly appreciated.

Code:

dtparam=spi=ondtoverlay=mcp2515-can1dtparam=oscillator=16000000,interupt=25dtoverlay=mcp2515-can0dtparam=oscillator=16000000,interupt=23

Code:

tchort@raspberrypi:~ $ sudo dmesg | grep spi[    3.000055] mcp251x spi0.0 can0: MCP2515 successfully initialized.[    3.000552] pinctrl-rp1 1f000d0000.gpio: pin gpio25 already requested by spi0.0; cannot claim for spi0.1[    3.000559] pinctrl-rp1 1f000d0000.gpio: pin-25 (spi0.1) status -22[    3.000566] mcp251x spi0.1: Error applying setting, reverse things back

Code:

tchort@raspberrypi:~ $ ifconfig can0can0: flags=193<UP,RUNNING,NOARP>  mtu 16        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 10  (UNSPEC)        RX packets 0  bytes 0 (0.0 B)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 0  bytes 0 (0.0 B)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Code:

tchort@raspberrypi:~ $ ifconfig can1can1: error fetching interface information: Device not found

Statistics: Posted by Tchort — Sun Apr 21, 2024 5:44 am — Replies 1 — Views 47



Viewing all articles
Browse latest Browse all 4686

Trending Articles