How to compile and install the klipper firmware running on a Fly-407ZG in USB mode
Edit me
Configuring and installing Klipper for USB
Tip: To read more about the KCONFIG_CONFIG option, see here
Compile Klipper Firmware for the usb
Note: Repeat these steps if a klipper update requires flashing new firmware to the MCU.
- ssh into your klipper host console
- cd to the klipper directory
cd ~/klipper
- Run make clean
make clean KCONFIG_CONFIG=config.407zg
- Open menuconfig
make menuconfig KCONFIG_CONFIG=config.407zg
- 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 (on PA11/PA12)
-
Quit and save the configuration
- Run Make to compile the firmware
make KCONFIG_CONFIG=config.407zg -j4
Flash Klipper USB 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 use in your printer.cfg.
- Run the make flash command to flash the firmware
make KCONFIG_CONFIG=config.407zg flash FLASH_DEVICE= {Your serial ID here }
- Example
make KCONFIG_CONFIG=config.407zg flash FLASH_DEVICE=/dev/serial/by-id/usb-katapult_stm32f407xb_170038000650314D35323820-if00
- Your Fly-407ZG should now have klipper firmware loaded and be ready to use.