shardul17
DIIDevHeads IoT Integration Server
•Created by shardul17 on 6/28/2024 in #middleware-and-os
HELP: Need to configure MCP2515 using Raspberry pi's SPI 0 bus.
I am using Raspberry pi 3b+, MCP2515 (CAN Controller), TCAN1042 (CAN Transreceiver) .
--------------------------------------------------------------------
uname -a : Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
--------------------------------------------------------------------
sudo dmesg | grep mcp:
[ 8.299885] mcp251x spi0.0: MCP251x didn't enter in conf mode after reset
[ 8.300217] mcp251x spi0.0: Probe failed, err=110
[ 8.300343] mcp251x: probe of spi0.0 failed with error -110
--------------------------------------------------------------------
I tried modifying /boot/config.txt as below:
dtparam=spi=on
dtoverlay=mcp2515-can0, oscillator=8000000, interrupt=26
dtoverlay=mcp2515-can0-overlay.dtbo
--------------------------------------------------------------------
Also, i tried writing dts and adding its dtbo file in /boot/overlay folder.
--------------------------------------------------------------------
Please guide me what I am doing it wrong here.
15 replies