This script is used to update your current MCU along with Can Bus devices.
-Katapult (if ~/katapult doesn't currently exist, install it using:
https://github.com/Arksine/katapult-MCUs must already be flashed with Katapult and Klipper and connected.
SSH into the Pi and run the following commands:
cd ~ git clone https://github.com/Turge08/klipper_can_update
- flash_can <config_name> Flashes a can bus device
- flash_usbtocan <config_name> <string_in_serial_path> Flashes a Can To USB device
<string_in_serial_path>: This is part of the /dev/serial path the script should look for to identify your MCU in Katapult mode. example: For "/dev/serial/by-id/usb-katapult_stm32f446xx_36003A000A5053424E363420-if00", use "stm32f446xx"
To configure the script, edit flash.sh using
nano ~/klipper_can_update/flash.sh
To use the existing configs, uncomment one of the lines and add your UUID.
The current list of configs are:
- octopus: Octopus v1.1/Pro with 446 Processor
- ebb36v11: BigTreeTech EBB 36 v1.1 (1M bus speed)
- sb2040: Mellow FLY-SB2040 (1M bus speed)
- sht36v2: Mellow FLY-SHT36 (1M bus speed)
-
To create your own config, run the following command:
make menuconfig KCONFIG_CONFIG=~/klipper_can_update/<your_config_name>.config
where "<your_config_name>" is the name of the config you'd like to create. -
Add a new line to the script: Example (if your new config is "ebb36v10":
flash_can ebb36v10 <your_uuid>
Once you're done editing the script, you can save the changes with Control-S then Control-X
Run the following to flash the latest installed version of klipper on the MCUs:
~/klipper_can_update/flash.sh