autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
793 stars 279 forks source link

Constructor locks up Arduino Nano 33 BLE #101

Closed bringert closed 11 months ago

bringert commented 11 months ago

On Arduino Nano 33 BLE, the MCP2515 constructor locks up the device. Replacing the call to endSPI() at the end of the constructor with digitalWrite(SPICS, HIGH) fixes the issue.

Presumably it doesn't like the call to SPIn->endTransaction() without a matching beginTransaction().