-
Notifications
You must be signed in to change notification settings - Fork 10
CAN Shield Configuration
In order to configure the SPI controller of the Raspberry Pi to make it communicate with the CAN-Shield, you need to add a few lines to config.txt which is available on the boot partition of the RaspberryPi OS / CarSimulator Image. This is different for each CAN shield:
| CAN-Shield | lines to be added to config.txt | Notes |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
This CAN-Shield has a 8MHz clock only. During high bus activity this can lead to problems. We especially experienced this during flashing where frames got lost. |
|
|
|
Note: spimaxfrequency needs to be set, which is not mentioned in the User Guide, in case the shield is used on RPi4, because the SPI bus has a higher frequency by default than the CAN controller can handle. Maybe higher freq is possible. If it's too high, the controller driver can't be loaded during bootup and there is an error message in dmesg visible. See this link for more details. |
PiCAN 2
PiCAN 2 DUO
RS485 CAN HAT
PiCAN 3