Fly-Super 5 Pro Klipper USB to CAN bridge mode
Edit me

Configuring and installing Klipper for USB to CAN bridge mode

Compile Klipper firmware for usbtocan

  • ssh to your klipper host console
  • cd to the klipper directory
    cd klipper
    
  • Run make clean
    make clean
    
  • Open menuconfig
    make menuconfig
    
  • Set the following settings

    • Enable extra Low Level configuration options : Checked
    • Micro Controller : STMicroelectronics STM32
    • Processor Model: STM32H723
    • Bootloader offset: 128 KiB bootloader
    • Clock Ref: 25 MHz crystal
    • Comm Interface - USB to CAN Bridge on PA11/PA12

    • CAN bus Interface: PB8/PB9
    • CanBus Speed: 500000

      Klipper Menu Config USB to CAN
      Klipper Menu Config USB to CAN
  • Quit and save the configuration

  • Run Make to compile the firmware
make -j4

Flash Klipper USB to CAN bus bridge firmware with katapult over USB

  • Find the Serial ID
    ls /dev/serial/by-id/
    
  • Copy the ID containing ‘STM32H723’ and make a note of it for your printer.cfg.

  • Run the make flash command to compile the firmware
    make flash FLASH_DEVICE={your serial id}
    
  • Example
    make flash FLASH_DEVICE=/dev/serial/by-id/usb-katapult_stm32f407xb_170038000650314D35323820-if00 
    
Burn Klipper firmware over USB
Burn Klipper firmware over USB
  • Your Fly-Super 5 Pro should now have klipper firmware loaded and be ready to use.

Re-Flashing klipper in USB to CAN bridge mode with katapult.

  • Run the katapult flash by UUID with -r to enable katapult USB firmware.
python3 ~/katapult/scripts/flash_can.py -i can0 -r -u { your uuid}
  • katapult loader will now appear as a USB device.
  • Get the katapult serial ID
    ls /dev/serial/by-id
    
  • Build klipper as before ( see above )

  • Flash your new klipper bin via Canbus by serial ID
    make flash FLASH_DEVICE={your serial id}
    
  • Reboot
Tags: