Setup Arduino IDE
To setup the RP2040 CANbed in Arduino IDE First follow the guide in the Logan Docs, here you can find how to setup Arduino IDE and how to install the MCP2515 CANbed library to be able to interface with the CAN module on the board. After you followed this guide there is just one more thing to change. Windows does not setup a module used by the library automatically upload the .bin file to the RP2040. To get this functionality working follow the following steps:
-
Open Optional Features via the windows menu

-
click on
view features -
search for
WMIC
-
click on
next - click on
add - Wait for it to install
- reboot PC
While coding
! important, when uploading only the Logan_CAN_MCP2515 should be the only CAN bus library installed as it uses the same syntax as some other libraries.
FAQ
I2C is not working
There are 2 I2C for RP2040, for this CANBed 2040, we use Wire1, that is, please change Wire to Wire1 And before Wire1.begin(), please add Wire1.setSDA(6) and Wire1.setSCL(7) to select the pin.