autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
725 stars 260 forks source link

Pico-Arduino Incompatibility #98

Open treyus30 opened 1 year ago

treyus30 commented 1 year ago

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.

xpat1024 commented 11 months ago

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.