107-systems / 107-Arduino-MCP2515

Arduino library for controlling the MCP2515 in order to receive/transmit CAN frames.
https://107-systems.org
MIT License
88 stars 14 forks source link

Doesn't work with Arduino Nano 33 BLE #103

Closed Chanuka-Jayanath closed 3 months ago

Chanuka-Jayanath commented 3 months ago

I am working on a project on which I use a MCP2515 Module with a 8Mhz crystal oscillator. Since I'm using an Arduino Nano 33 IoT board (because it supports BLE), I downloaded this library because it was compatible with the architecture of the board. After downloading and testing the given example, it worked well. But since my usage is only based on BLE and not Wi-Fi, I had an Arduino Nano 33 BLE board which has BLE 5.0 instead of BLE 4.2 on the IoT board. I checked if this library was compatible with the Arduino Nano 33 BLE on the github repo on which it indicates that it is compatible. So I compiled the example code and ran it. This is where I have an issue. The program compiles without any problem and get transfered to the board. But, when I look for the CAN messages with a CAN data recorder. I see a single iteration of CAN message. Since in the example, the message is looped every 100ms, I should be expecting new iterations of the CAN message every 100ms too. This expected behaviour is working fine the IoT board but not with the BLE board sadly.... I suppose it has to do with the library compatibility because, the pinout I use is the same for the boards and every components are well soldered with wires without any jumper wires.

aentinger commented 3 months ago

Yes, sorry the README is misleading, since mbed support (and therefore support for the Arduino Nano 33 BLE has been removed in https://github.com/107-systems/107-Arduino-MCP2515/commit/632aa90a03861bc3058b5f54809626efe877161c - partially because it really never worked well). I'll also remove the notice of support in this repositories README.