Klipper Configuration for the Fly-SB2040-V2 on CANbus
   
    
    
    
    
     Edit me
    
    Important: This guide assumes you have a working Klipper host installation on a Raspberry Pi or compatible device
Compile Klipper firmware for Fly-SB2040-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.sb2040v2
 Important: If when running the above command you get this output 
Then you need to set all the correct settings when running make menuconfig below.
Otherwise, skip to compiling klipper.
Using default symbol values (no 'config.sb2040v2'). Configuration saved to 'config.sb2040v2' Then you need to set all the correct settings when running make menuconfig below.
Otherwise, skip to compiling klipper.
- 
    Open menuconfig make menuconfig KCONFIG_CONFIG=config.sb2040v2
 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 (Raspberry Pi RP2040)
- Bootloader offset (16KiB bootloader)
- Communication interface (CAN bus)
- (4) CAN RX gpio number
- (5) CAN TX gpio number
- (1000000) CAN bus speed
- 
        (gpio24) GPIO pins to set at micro-controller startup  Klipper Menu Config CAN 
 
- Quit and save the configuration
- 
    Run Make to compile the firmware make KCONFIG_CONFIG=config.sb2040v2 -j4
Flash Klipper CANbus firmware with Katapult over CANbus
- 
    Look in your printer.cfg file and make note of the UUID for your board. 
- 
    Flash the klipper firmware to the Fly-SB2040-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.  Burn Klipper firmware over CANbus 
- 
    Your Fly-SB2040-V2 should now have klipper firmware updated and be ready to use again.