Hello,
I have a MCP2518FD-click CAN controller connected to my raspberrypi 4 B via SPI pins. The CS pin of MCP is connected to the CE0 pin of raspi and then I tried to bring up the can0 interface up on my raspberrypi using "sudo ip link set can0 up type can bitrate 500000". But I got "cannot find device "can0"" as output. Following is the steps I did to bring up the can0 interface up on my raspi:
"sudo modprobe mcp251xfd"
"sudo modprobe can"
"sudo modprobe can_raw"
"sudo ip link set can0 up type can bitrate 500000".
I added this to the dtoverlay: "dtoverlay=mcp251xfd-can0,interrupt=25,oscillator=5000000" and also SPI bus is enabled. Could it a problem with the Raspbian OS (bookworm) ?. Looking forward to a solution.
Thank you![Smile :)]()
I have a MCP2518FD-click CAN controller connected to my raspberrypi 4 B via SPI pins. The CS pin of MCP is connected to the CE0 pin of raspi and then I tried to bring up the can0 interface up on my raspberrypi using "sudo ip link set can0 up type can bitrate 500000". But I got "cannot find device "can0"" as output. Following is the steps I did to bring up the can0 interface up on my raspi:
"sudo modprobe mcp251xfd"
"sudo modprobe can"
"sudo modprobe can_raw"
"sudo ip link set can0 up type can bitrate 500000".
I added this to the dtoverlay: "dtoverlay=mcp251xfd-can0,interrupt=25,oscillator=5000000" and also SPI bus is enabled. Could it a problem with the Raspbian OS (bookworm) ?. Looking forward to a solution.
Thank you

Statistics: Posted by mr_jeff — Fri Jan 26, 2024 2:09 pm — Replies 0 — Views 12