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

Interfacing (DSI, CSI, I2C, etc.) • Re: MCP2515 not working on can0 interface

$
0
0
I suspect there's a wiring fault of some description, but let's start with a clean configuration - there's some legacy/cargo cult baggage in your config.txt.

The absolute minimum to enable an MCP2515 on spi0.0 is:

Code:

dtoverlay=mcp2515-can0,spi0-0,oscillator=16000000,interrupt=25
If you are explicitly trying to release GPIO7 for other duties, then you can load the spi0-1cs overlay as well:

Code:

dtoverlay=spi0-1csdtoverlay=mcp2515-can0,spi0-0,oscillator=16000000,interrupt=25
Does the AutoPi not come with (a link to) documentation?

Statistics: Posted by PhilE — Wed Mar 05, 2025 2:52 pm



Viewing all articles
Browse latest Browse all 8052

Trending Articles