How to Configure Katapult for USB Operation on the Fly-ADXL345-USB
Edit me

Overview

Katapult allows you to update your toolboard via USB, so no rebooting and rewiring is necessary. We recommend using Katapult for this additional convenience.

Install Katapult package

  • ssh into your klipper host console

  • Clone the Katapult firmware to your Klipper Host

    cd ~/
    git clone https://github.com/Arksine/katapult
    
  • From your Fluidd or Mainsail web UI Edit Moonraker.conf and add the following at the bottom to allow Moonraker to manage updates to Katapult.

    [update_manager Katapult]
    type: git_repo
    path: ~/katapult
    origin: https://github.com/Arksine/katapult.git
    is_system_service: False
    

Compile Katapult firmware

  • cd to the Katapult directory

    cd ~/katapult
    
  • Run make clean

    make clean KCONFIG_CONFIG=config.adxl345
    
  • Open menuconfig

    make menuconfig KCONFIG_CONFIG=config.adxl345
    
  • Set the following settings
    • Micro-controller Architecture (Raspberry Pi RP2040)
    • Flash Chip (W25Q080 with CLKDIV 2)
    • Build Katapult deployment application (Do not build)
    • Communication interface (USB)
    • () GPIO pins to set on bootloader entry
    • [*] Support bootloader entry on rapid double clip of reset button
    • [ ] Enable bootloader entry on button (or gpio) state
    • [ ] Enable Status LED

      Katapult Menu Config USB
      Katapult Menu Config USB
  • Quit and save the configuration

  • Run the make command to compile the firmware

    make KCONFIG_CONFIG=config.adxl345 -j4
    
  • You should now have a katapult.uf2 file at ~/katapult/out/

Burn Katapult firmware to the Fly-ADXL345-USB

  • Use a USB-C data cable to connect the Fly-ADXL345-USB board to the klipper host.

  • Press the boot button while inserting the USB cable to put the Fly-ADXL345-USB into boot mode.

    Fly-ADXL345-USB Boot Button Location
    Fly-ADXL345-USB Boot Button Location
  • Run lsusb to see if the connection is successful.

    lsusb
    
    lsusb Results
    lsusb Results
  • Flash the Fly-ADXL345-USB

    sudo make KCONFIG_CONFIG=config.adxl345 flash FLASH_DEVICE=2e8a:0003
    
  • This will flash the Katapult bootloader image and restart the Fly-ADXL345-USB.

  • When the status LED starts blinking, Reboot and continue to the Klipper for USB configuration section

Tags: