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

General discussion • Re: Pi4 + MCP2515 HAT = no can0, can1 devices

$
0
0
Almost forgot! Part of config.txt responsible for CAN HAT:

Code:

dtparam=spi=on # global SPI ondtoverlay=i2c0 # i have no idea what's up with i2c, manufacturer says sodtoverlay=spi1-3cs # init SPI1 with 3x CS pinsdtoverlay=mcp2515,spi1-1,oscillator=16000000,interrupt=22 # SPI1 CS1 = chip1dtoverlay=mcp2515,spi1-2,oscillator=16000000,interrupt=13 # SPI1 CS2 = chip2
MCP2515 oscillators are 16 MHz each, as intended

Statistics: Posted by meetryy — Sun Jun 09, 2024 6:57 pm



Viewing all articles
Browse latest Browse all 2429

Trending Articles