Octopus Pro Klipper CanBoot Install - WidowMaker-3D/WidowMaker GitHub Wiki
cd ~
git clone https://github.com/Arksine/CanBoot
pip3 install pyserial
cd CanBoot
make menuconfig
Exit using Q
or ESC
and confirm changes with Y
make clean
make
- Connect the PI via USB-C
- Set Boot Jumper (Yellow arrow)
- Double press Reset button (Blue arrow)
Verify the device is in DFU mode using
lsusb
You should see a STMicroelectronics STM Device in DFU mode listed
We can now flash the CanBoot bootloader
sudo dfu-util -a 0 -D ~/CanBoot/out/canboot.bin --dfuse-address 0x08000000:force:mass-erase:leave -d 0483:df11
lsusb
You can now remove the Boot Jumper.
cd klipper
make menuconfig
Note: You can use the default Can bus speed (500000) but make sure it matches with /etc/network/interfaces.d/can0
Exit using Q
or ESC
and confirm changes with Y
make clean
make
Run
ls /dev/serial/by-id/
Now use the "/dev/serial/by-id/usb-CanBoot_stm32f446xx_" line in the following command to flash your board with the Klipper Firmware.
python3 ~/CanBoot/scripts/flash_can.py -d /dev/serial/by-id/usb-CanBoot_stm32f446xx_<YOUR_NUMBER>-if00
sudo nano /etc/network/interfaces.d/can0
Make sure to use the same bitrate that you used when building the Klipper Firmware!
allow-hotplug can0
iface can0 can static
bitrate 1000000
up ifconfig $IFACE txqueuelen 256
pre-up ip link set can0 type can bitrate 1000000
pre-up ip link set can0 txqueuelen 256
and press Ctrl
+X
to save.
Reboot the pi with sudo reboot
lsusb
~/CanBoot/scripts/flash_can.py -i can0 -q
Now update your Klipper configuration under the [MCU] section with the UUID detected
From
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_2A0031000B50534E4E313120-if00
restart_method: command
To
[mcu]
canbus_uuid: <UUID>