2020-01-14, 08:29 PM
Let's not panic, everything is working right
The only wrong thing here is the way we check if the SPI is enabled. We use lsmod to check if spidev is present in the list but when you enable MCP2515 lsmod no longer returns spidev. Just do not trust the warning messages of SPI being disabled because it is enabled and working.
The solution is to switch to another flag. I have tested spi_bcm2835 and it works for MCP2515 enabled and disabled in my Raspberry 4 but I need to know if this is true for raspberry 3 too. Please could you test in RPi3 typing this in the terminal for both states (with MCP2515 and without)?
You should get something like:
The only wrong thing here is the way we check if the SPI is enabled. We use lsmod to check if spidev is present in the list but when you enable MCP2515 lsmod no longer returns spidev. Just do not trust the warning messages of SPI being disabled because it is enabled and working.
The solution is to switch to another flag. I have tested spi_bcm2835 and it works for MCP2515 enabled and disabled in my Raspberry 4 but I need to know if this is true for raspberry 3 too. Please could you test in RPi3 typing this in the terminal for both states (with MCP2515 and without)?
Code:
lsmod | grep spi_bcm2835
You should get something like:
Code:
spi_bcm2835 20480 0