Hey guys, If any of you have tried to send SWCAN frames using Macchina’s included example, you may have noticed that there is never any data sent.
That’s due to the example having the wrong pins set for sending messages. Currently, the example sketch states these as the pins…
SWCAN CAN(CS_PIN, INT_PIN);
If you’d like your M2 to actually be able to send CAN frames, change them to this…
SWCAN CAN(SPI0_CS3, SWC_INT);
If someone on the M2 team sees this, please consider updating your examples. There is no doubt in my mind that this oversight has caused many people to fail in even the simplest of tests.
Thanks, and happy tinkering.