Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help getting a Raspberry Pi CANBUS hat going #3036

Open
jimmykarily opened this issue Nov 25, 2024 Discussed in #2517 · 1 comment
Open

Help getting a Raspberry Pi CANBUS hat going #3036

jimmykarily opened this issue Nov 25, 2024 Discussed in #2517 · 1 comment

Comments

@jimmykarily
Copy link
Contributor

Discussed in #2517

Originally posted by NGTOne April 26, 2024
I'm trying to get a PiCAN2 Duo going on a RasPi 4B with Ubuntu 22.04+Kairos, but nothing I do seems to make it work - it never detects the two CAN ports the board exposes. I've built an image with the settings from the PiCAN2 documentation in both /boot/config.txt and /boot/firmware/config.txt, and neither seems to have any effect.

$ cat /boot/config.txt 
# https://www.raspberrypi.com/documentation/computers/config_txt.html
# https://emteria.com/kb/connect-uart-rpi
# https://www.raspberrypi.com/documentation/computers/config_txt.html
enable_uart=1
uart_2ndstage=1

# Disabling bluetooth might change the serial device:
# https://raspberrypi.stackexchange.com/a/69721
# On rpi4, if bluetooth is not disabled (like here), the device is /dev/ttyS0
#dtoverlay=disable-bt
dtparam=i2c_arm=on
# dtparam=i2c_arm_baudrate=400000
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=mcp2515-can1,oscillator=16000000,interrupt=24
dtoverlay=spi-bcm2835-overlay
$ sudo /sbin/ip link set can0 up type can bitrate 500000
Cannot find device "can0"

I've verified it works on a clean Raspbian, so I know it's something in the Kairos/Ubuntu configuration.

@jimmykarily
Copy link
Contributor Author

It would be fixed by this: #1392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant