Difference between revisions of "Recans A0"

From iagent
Jump to: navigation, search
(Created page with "<pre> sudo ip link set can0 type can bitrate 1000000 sudo ip link set up can0 </pre>")
 
Line 1: Line 1:
 +
Recans A0 has two controllers, one is based on RP2040, the other on MCP2515.
 +
 +
To bring up the RP2040 CAN controller:
 
<pre>
 
<pre>
 
sudo ip link set can0 type can bitrate 1000000
 
sudo ip link set can0 type can bitrate 1000000
 
sudo ip link set up can0
 
sudo ip link set up can0
 +
</pre>
 +
 +
The MCP2515 CAN controller
 +
<pre>
 +
sudo mount -o remount,rw /boot
 +
sudo armbian-add-overlay /boot/overlay-user/sun50i-a64-spi1.dts
 +
sudo mount -o remount,ro /boot
 
</pre>
 
</pre>

Revision as of 19:17, 21 February 2024

Recans A0 has two controllers, one is based on RP2040, the other on MCP2515.

To bring up the RP2040 CAN controller:

sudo ip link set can0 type can bitrate 1000000
sudo ip link set up can0

The MCP2515 CAN controller

sudo mount -o remount,rw /boot
sudo armbian-add-overlay /boot/overlay-user/sun50i-a64-spi1.dts
sudo mount -o remount,ro /boot