USB to CAN Firmware Flashing
Start Compiling
- A host computer with the
klipper
service installed is required Connect via SSH over the network - And the device is connected to the host computer
- Note: Please use a regular host computer, such as Raspberry Pi FLY. If it is a modified host computer (such as a WiFi stick, Redmi, etc.), due to too many issues, we cannot provide technical support
- FlyOS-Armbian system and general system notes
- FlyOS-FAST system notes
- Notes on
FlyOS-Armbian
system and general system- Ordinary host computer systems such as Raspberry Pi, FLY are viewed in this category
- Do not use the
ROOT
user for any operations on these host computers - Please use a normal user for operations
- To switch users, for
FlyOS-Armbian
system use thesu fly
command to switch to a normal user - For other systems, use the
su <your host computer username>
command to switch to a normal user
su <your host computer username>
- Notes on
FlyOS-FAST
system- The default username for
FAST system
isroot
, password ismellow
- Compiling firmware can only be done using the
root
user - And
FAST system
only hasROOT
user, you don't need to switch users!!!
- The default username for
::: tip
- Please ensure that the host machine can connect to the network normally.
- Before compiling the firmware, use SSH to log in to the host machine via the network.
- Do not use a serial port tool to log in to the host machine.
:::
Klipper Firmware Compilation and Configuration Page Operation Instructions
::: tip
Please make sure that the keyboard input method is in half-width mode, i.e., English mode.
:::
- The key
↑
(up arrow) and↓
(down arrow) on the keyboard are used to move the cursor up and down to select menu items. - The confirm key
Enter
or spacebarSpace
is used to check the menu or enter a sub-menu. - The exit key
ESC
is used to return to the previous menu. - The
Q
key is used to exit the Klipper firmware configuration page. - When exiting the Klipper firmware configuration page and there is a prompt, press the
Y
key to save the configuration file.
::: warning
If there are fewer options in the configuration page, please first check [ ] Enable extra low-level configuration options
to display some hidden options.
:::
Below is the introduction on how to compile the firmware:
-
After connecting to SSH, enter the following command and press Enter:
cd ~/klipper && rm -rf ~/klipper/.config && rm -rf ~/klipper/out && make menuconfig
-
Where
rm -rf ~/klipper/.config && rm -rf ~/klipper/out
is to delete previous compilation data and firmware,make menuconfig
is to compile the firmware, after execution, the following interface should appear -
Select Enable extra low-level configuration options and press Enter
-
Enter the menu Micro-controller Architecture then select STMicroelectronics STM32 and press Enter
-
Enter the menu Processor model, select STM32H723 and press Enter
-
Select Bootloader offset, select: 128KiB bootloader
-
Select Clock Reference (8 MHz crystal), select: 25 MHz crystal
-
Select Communication interface, select: USB to CAN bus bridge (USB on PA11/PA12)
- Press the
Q
key, and Save configuration appears, then pressY
key - Now the configuration should be saved and it returns to the command line interface
- Enter the following command to start compiling, it takes some time
make -j4

-
If the following content is output, the compilation is successful
Linking out/klipper.elf
Creating hex file out/klipper.bin
Flashing Firmware
Preparation
- Before starting the firmware burning, please use network connection SSH
- Counterfeit memory cards may cause the burning to fail, please try to use the recommended memory cards below to update the firmware
- Prepare a TF card with a capacity not exceeding
32G
, and it is recommended that the transfer speed of the TF card must beclass10
or higher, it is recommended to use brands such as SanDisk
Download Firmware
-
Use the TF card you prepared earlier
-
Format with
SDFormatter
-
Use MobaXterm_Personal to find the left file directory, find
klipper
, then findout
to open- FlyOS-Armbian system and general system firmware download directory
- FlyOS-FAST system firmware download directory
warning- Notes for
FlyOS-Armbian
system and general system- Ordinary host systems such as Raspberry Pi, FLY Pi, etc., are viewed in this category
- The compiled firmware is in the
/home/<your host computer username>/klipper/out/
directory
warning- Notes for
FlyOS-FAST
system- Firmware directory for
FAST system
- The compiled firmware is in the
/data/klipper/out/
directory
- Firmware directory for
-
And download
klipper.bin
to the TF card, and rename it tofirmware.bin
-
Power off the mainboard, insert the TF card into the mainboard
-
On the mainboard, wait for 10 seconds
-
Remove the TF card and insert it into the computer, if the
firmware.bin
in the SD card disappears andFLY.CUR
appears, it means the burning is successful