[SOLVED] MCP2515 CAN BUS Ubuntu 18.04 intel CPU
I have purchased the wave share can hat https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-manuakl-en.pdf
It works well on my Raspberry PI, but I really need to get it working on the Up Squared und Ubuntu as well.
Steps I have taken:
Enable SPI this worked and I can control an E-Paper display through SPI
I took the kernel code from @nukular thanks for this.
You can find the kernel here https://forum.up-community.org/discussion/96/canbus-hat-support
And tried it to get it working.
I tried busnum 0, 1 and 2. Only with bus number 2 the kernel loads. Otherwise I get no such device.
Interrupt is on PIN 22 or 402 (Linux) I even tried every available pin, same result as below
Tried different settings on the SPI max Hz and went really low, to ensure that this was not the problem either.
The kernel module loads but gives the following output no matter what I try (except for changing the bus number, then it does not load at all):
running dmesg | grep mcp give me
> mcp2515_init: init mcp2515_init: irq for pin 402 is 130 mcp251x spi2.0: Cannot initialize MCP2515. Wrong wiring? mcp251x spi2.0: Probe failed, err=19 mcp2515_init: device created!
Does any one has any idea on where to look?
- 267 All Categories
- 104 Announcements & News
- 35 Product News - New Product/Product Change Notice/ End-of-life
- 175 Welcome Developers!
- 48 Unboxing & Project Sharing
- 15 Tech Updates
- 235 UP Products
- 20 UP Squared Pro
- 107 UP Xtreme
- 763 UP Squared
- 1.3K UP Board
- 81 UP Core Plus
- 209 UP Core
- 1 UP Xtreme Lite
- 36 UP AI Edge
- 207 Starter Kits & Peripheral