uranusb
Posts: 3
Joined: Tue Feb 06, 2018 3:49 am

CAN-FD with Raspberry Pi 3

Tue Feb 06, 2018 4:05 am

Hi everyone,

I am a beginner in raspberry pi and linux. Currently, I am working on implementing a CAN-FD board (click MCP2517FD board with MCP2517FD controller and ATA6563 transceiver) on raspberry pi 3 by using SPI interface. I completed the connection and tested the board following the same steps of implementing CAN (mcp2515) on the raspberry pi:

1.

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo reboot
2. Add three lines in config.txt

Code: Select all

dtparam=spi=on
dtoverlay=mcp2517fd-can0,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
3. Test CAN

Code: Select all

sudo /sbin/ip link set can0 up type can bitrate 500000
However, it keeps telling me that cannot find device "can0", then I tried some other methods, such as removing "-overlay" or fixing the name of the controller from "mcp2517fd" to "mcp2517" in config.txt, but got the same result.

I also checked the available interfaces by using "ifconfig -a" and found that there is no CAN interface. So I just want to know, does anyone here have the experience of implementing CAN-FD on the raspberry pi or does anyone here can give me some suggestions?

Thank you.

User avatar
PeterO
Posts: 5968
Joined: Sun Jul 22, 2012 4:14 pm

Re: CAN-FD with Raspberry Pi 3

Tue Feb 06, 2018 9:21 am

Have a look at sk pang's web site, there may be some tips on using his boards that might help you.
http://skpang.co.uk/catalog/pican2-canb ... -1475.html
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

uranusb
Posts: 3
Joined: Tue Feb 06, 2018 3:49 am

Re: CAN-FD with Raspberry Pi 3

Tue Feb 06, 2018 3:00 pm

PeterO wrote:
Tue Feb 06, 2018 9:21 am
Have a look at sk pang's web site, there may be some tips on using his boards that might help you.
http://skpang.co.uk/catalog/pican2-canb ... -1475.html
PeterO
Thanks for your reply. Actually, I was working on PiCAN2 board before, it worked fine with mcp2515, but when I tried to modify the code and applied it over mcp2517fd, I failed. It seems that the system can't detect the CAN core.

jbholtz
Posts: 1
Joined: Tue Jun 12, 2018 4:43 pm

Re: CAN-FD with Raspberry Pi 3

Tue Jun 12, 2018 4:45 pm

Has this been solved. I also have a PiCAN-FD from CopperHill/SPK and trying to setup my RPI3+. Thanks for any information that has already been shared. I've been looking around for any information

bertr2d2
Posts: 98
Joined: Wed Aug 08, 2012 10:12 pm

Re: CAN-FD with Raspberry Pi 3

Wed Jun 13, 2018 4:04 am

Easy to build CAN-Bus interface:
http://lnxpps.de/rpie

Return to “Interfacing (DSI, CSI, I2C, etc.)”