Fly-Super8 Klipper USB to CAN
Edit me

Configuring and installing Klipper for USB to CAN bridge mode

Compile Klipper firmware for usbtocan for USB to CAN Bridge Mode

  • ssh into your klipper host console
  • cd to the klipper directory
    cd klipper
    
  • Run make clean
    make clean KCONFIG_CONFIG=config.super8
    
  • Open menuconfig
    make menuconfig KCONFIG_CONFIG=config.super8
    
  • Set the following settings
    • Enable extra low-level configuration options : Checked
    • Micro-controller Architecture : STMicroelectronics STM32
    • Processor model: STM32F407
    • Bootloader offset: 32 KiB bootloader
    • Clock Reference: 8 MHz crystal
    • Communication interface - USB to CAN bus bridge (USB on PA11/PA12)
    • CAN bus interface - CAN bus (on 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 KCONFIG_CONFIG=config.super8 -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 ‘STM32F407’ and make a note of it for your printer.cfg.

  • Run the make flash command to compile the firmware
    make KCONFIG_CONFIG=config.super8 flash FLASH_DEVICE={your serial id}
    
  • Example
    make KCONFIG_CONFIG=config.super8 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 8 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: