How to compile and install the klipper firmware running on a Fly-E3-v2 for CAN
Edit me
Configuring and installing Klipper for CAN bus
Compile Klipper firmware for Fly-E3-v2
Tip: To read more about the KCONFIG_CONFIG option, see here
- ssh to your klipper host console
-
cd to the klipper directory
cd ~/klipper
-
Run make clean
make clean KCONFIG_CONFIG=config.e3v2
-
Open menuconfig
make menuconfig KCONFIG_CONFIG=config.e3v2
Important: As of FlyOS v3.1, the default CAN speed is 1000000. These instructions have been updated to reflect that speed as default.
Your host system may be set up for a different default CAN speed. Use
Your host system may be set up for a different default CAN speed. Use
nano /etc/network/interfaces.d/can0
to check the speed- Set the following settings
- [*] Enable extra low-level configuration options
- Micro-controller Architecture (STMicroelectronics STM32)
- Processor model (STM32F407)
- Bootloader offset (32KiB bootloader)
- Clock Reference (8 MHz crystal)
- Communication interface (CAN bus (on PB8/PB9))
- (1000000) CAN bus speed
-
() GPIO pins to set at micro-controller startup
- Quit and save the configuration
-
Run Make to compile the firmware
make KCONFIG_CONFIG=config.e3v2 -j4
Flash Klipper CANbus firmware with Katapult over CANbus
-
Get the Fly-E3-v2 UUID buy running the following script.
~/katapult/scripts/flash_can.py -i can0 -q
-
If CAN devices are detected the above command will return the following.
Detected uuid: 8248a4b16ede, Application: Katapult
- Each device will have a unique uuid. In the above example, 8248a4b16ede is the micro-controller’s canbus uuid.
-
Save the UUID for the next step and for using in your printer.cfg file.
-
Flash the klipper firmware to the Fly-E3-v2 by running the following command.
python3 ~/katapult/scripts/flash_can.py -i can0 -f ~/klipper/out/klipper.bin -u {paste your UUID here}
-
Example
python3 ~/katapult/scripts/flash_can.py -i can0 -f ~/klipper/out/klipper.bin -u 8248a4b16ede
-
You should get a download progress bar and File downloaded successfuly when the burning is complete.
- Your Fly-E3-v2 should now have klipper firmware installed and be ready to use.