Katapult Firmware
Katapult Firmware Description
tip
Katapult was originally named CanBoot and later renamed to Katapult.
- Katapult firmware is a type of bootloader that can be used in conjunction with Klipper. After flashing via methods like DFU, the firmware can be updated with a single command.
- Advantages: Quickly double-click the reset button or power off twice in quick succession to enter Katapult firmware, at which point an LED on the motherboard will blink.
- Katapult firmware can only be used to flash firmware and cannot connect to Klipper!!!
- Katapult firmware supports three methods for connecting to the host computer, with each method's firmware being independent of the others:
- CAN connection
- Advantages: After compiling the Klipper firmware, it can be updated directly using commands, with strong anti-interference capability.
- Disadvantages: Requires prior knowledge of the firmware's compiled baud rate.
- RS232 connection
- Advantages: After compiling the Klipper firmware, it can be updated using commands, with very strong anti-interference capability.
- Disadvantages: Cannot update the firmware with a single command; requires manually entering Katapult firmware.
- USB connection
- Advantages: After compiling the Klipper firmware, it can be updated directly using commands.
- Disadvantages: Long data cables are prone to interference, which may cause disconnections.
- CAN connection
tip
- SHT36 V2 can only use CAN connection
- CAN firmware provided here is divided into 500K and 1M rates
Notes
- APMF072 can only be flashed using a computer
- STM32F103 can only update firmware using the host software
Enter Flashing Mode
tip
The circled one is BOOT
- STM32F103 does NOT require this step!!!!
- With the board completely powered off, short the BOOT pins, then connect a data-capable TYPE-C cable from the board to your device.
Loading...
Flash Firmware
- STM32F072 Windows Flashing Tutorial
- STM32F072 Host Software Flashing Tutorial
- APM32F072 Windows Flashing Tutorial
- STM32F103 Update Firmware via Klipper Tutorial
- Katapult firmware for SHT36_V2
- Click the download link below
-
Loading...
Important Notice
To ensure successful STM32 flashing, please pay attention to the following:
- Some computer USB ports may have driver or signal compatibility issues, leading to unstable flashing. It is recommended that you try connecting to a different USB port.
- If changing ports does not work, an effective solution is to connect via an external USB hub, which often improves compatibility.
- When the flashing software reports the error message shown below, also try using a hub first. If the problem persists, please check or use the host computer software for flashing.
Loading...
- Flashing Tool Download Link
- Download
SetupSTM32CubeProgrammerand theSTM32 DFU Driver. - Download the firmware to any directory on your computer.
- Connect the mainboard to the computer using a Type-C cable. Ensure it has entered
DFUflashing mode. - In STM32CubeProgrammer, select USB mode, refresh, and connect.
Loading...
- If no error pop-up appears, the connection is successful.
Loading...
- Click the download icon on the left and select the options shown below.
Loading...
- Click the
Browsebutton indicated by the arrow, then select the firmware you need to flash.Loading... - For
Start address, enter0x08000000.- Note: If the firmware is in
HEXformat, please skip this step!!
Loading... - Note: If the firmware is in
- Click
Start automatic modebelow to begin flashing the firmware.Loading... - The prompt below indicates that the firmware flashing is complete.
Loading...
- Install the Flashing Tool
- FLY host machines do not need to perform this step.
- If installation is required, ensure the host machine is connected to the internet.
- If the flashing tool is already installed, you can skip this step.
sudo apt update
sudo apt install dfu-util -y
- Check Device Connection Status
- Execute the following command to confirm if the device is successfully connected:
lsusb
- If the DFU device is not recognized, try re-entering flashing mode.
- On some system versions, the device name may differ. As long as
0483:df11appears, it indicates successful entry into flashing mode.
Loading...
- Obtain Precompiled Firmware
- The following are precompiled firmware files. Please select the corresponding command to download based on your system type (ensure the host machine can access the internet). If unable to download due to network issues, contact the after-sales group administrator for assistance.
- General System
- FlyOS-FAST System
cd && git clone https://github.com/FengHua741/FLY_Katapult.git
git clone https://github.com/FengHua741/FLY_Katapult.git /data/FLY_Katapult
ln -s /data/FLY_Katapult /root/FLY_Katapult
- If the firmware package has already been downloaded, it is recommended to update to the latest version before proceeding:
cd ~/FLY_Katapult && git pull
- Flash Firmware
tip
Only need to flash one of the firmware files
- Below is the command to flash the 500K CAN rate firmware
sudo dfu-util -a 0 -d 0483:df11 --dfuse-address 0x08000000 -D ~/FLY_Katapult/developer/SHT36/FLY_SHT36V2_072_500K.BIN
- Below is the command to flash the 1M CAN rate firmware
sudo dfu-util -a 0 -d 0483:df11 --dfuse-address 0x08000000 -D ~/FLY_Katapult/developer/SHT36/FLY_SHT36V2_072_1M.BIN
-
If you see the content shown by the arrow in the image below,
File downloaded successfully, then the flashing is successful.Loading...
tip
After flashing is complete, the board needs to be completely powered off once.
- Katapult firmware for SHT36_V2
- Click the download link below
-
Loading...
- Flashing Tool Download Link
- Download
DFUProgrammer - Copy the previously compiled firmware (klipper.bin) or the pre-compiled
Katapult firmwareto any directory on your computer - Connect the mainboard to the computer using a Type-C cable, ensuring it is in DFU flashing mode
- Open DFUProgrammer and follow the selections below
Loading...Loading...
- Click "Start Updating Firmware" and wait briefly. Once flashing is complete, you can disconnect the Type-C cable and remove the jumper cap
- Pull pre-compiled firmware
- These are all pre-compiled firmware files
- Please note the host computer needs internet access to install
- The host computer needs to execute the command below to download the firmware package
cd && git clone https://github.com/FengHua741/FLY_Katapult.git
- If you have already downloaded the firmware package, it is recommended to update it before proceeding with the remaining steps.
cd ~/FLY_Katapult && git pull
- This method directly updates the existing Katapult firmware on the tool board via CAN
- Need to replace
<Toolboard ID>with the CAN ID of the STM32F103 controller tool board - Below is the command to update to the 103 version 1M CAN rate firmware
~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f ~/FLY_Katapult/developer/SHT36/FLY_SHT36V2_103_1M.BIN -u <Toolboard ID>
- Below is the command to update to the 072 version 500K CAN rate firmware
~/klippy-env/bin/python ~/klipper/lib/canboot/flash_can.py -f ~/FLY_Katapult/developer/SHT36/FLY_SHT36V2_103_500K.BIN -u <Toolboard ID>
Confirm Firmware Startup
- If the firmware starts normally, the LED will blink.
Loading...
Loading...