arduino-mcp2515
arduino-mcp2515 copied to clipboard
Pico-Arduino Incompatibility
This library seems to soft-lock the Rpi Pico (RP2040) after setting up SPI pins, which can be caused by improper SPI channel & pin assignment. https://arduino-pico.readthedocs.io/en/latest/spi.html However, SPI is confirmed to be working properly with other libraries like Adafruit GFX-based ones, so it is something in the way this particular library functions.
I've spent several hours trying to understand why, but C++ is not something I'm experienced enough in to get to the bottom of this. Would welcome someone to look into this or provide further suggestions.
Just to add to this; I'm seeing the same issue with Pico-Arduino framework, interestingly it works fine with the mbed framework. I'll look some more once I get my debug probe.