I was puzzling over why the CANSender and CANReceiver examples wouldn't work, until I realised that you have to configure the transceiver on the Feather M4 CAN Express board.
I suggest adding the following in setup() for the two examples so other users don't have the same problem:
Code: Select all
#if defined(ARDUINO_FEATHER_M4_CAN)
pinMode(PIN_CAN_STANDBY, OUTPUT);
digitalWrite(PIN_CAN_STANDBY, false); // turn off STANDBY
pinMode(PIN_CAN_BOOSTEN, OUTPUT);
digitalWrite(PIN_CAN_BOOSTEN, true); // turn on booster
#endif