[riot-notifications] [RIOT-OS/RIOT] tests/candev: add mcp2515 + driver/mcp2515: add driver (#13624)

Wouter Symons notifications at github.com
Mon May 4 23:02:19 CEST 2020


@JannesVolkens Sorry, corona-times were though on me and didn't have much time (and energy) to work on this further. 
I had another look at it today, made a big test-setup to hook up a logic analyzer on a bunch of lines,  and compared the SPI-communication of AVR <--> MCP with STM <--> MCP, and couldn't find much of a difference here (except for a few slight bytes that were different, but that's not abnormal I think). 

So why doesn't it work? Even putting a bunch of debug prints all over the place didn't give much leads to investigate. 

Turns out... the issue was fairly obvious... I started using the same breakout boards as you were (while I was using the IC's on perfboard before). The breakout boards use a different crystal frequency... DOH! 

The fix is simple, in the Makefile, change TEST_MCP2515_CLK to 8Mhz (instead of the default 16MHz). Then it worked like a charm! 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13624#issuecomment-623703837
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200504/39888f4b/attachment.htm>


More information about the notifications mailing list