USB Bridge CAN Firmware Compilation
Start Compilation
Firmware Compilation Quick Guide
Notes
- Network: Ensure the host machine (Raspberry Pi, etc.) is connected to the network.
- Login Method: Must use SSH to log in via the network; disable serial port.
- Input Method: Keep the keyboard in English half-width mode.
SSH Login and User Switching
Use tools like MobaXterm, PuTTY, etc., to SSH into the host machine.
Switching Users:
- Standard Systems (Raspberry Pi official system, etc.)
Do not useroot. Switch to a regular user:su <username> - FLY Host Machine (FlyOS-FAST system)
Only supports logging in as therootuser (password:mellow).
Firmware Compilation Operation Guide
In the Klipper firmware configuration interface, only keyboard operations are supported; mouse usage is not possible.
| Key | Function |
|---|---|
| ↑ / ↓ | Move the cursor up/down to select menu items |
| Enter / Space | Confirm selection, toggle options, or enter submenus |
| ESC | Return to the previous menu |
| Q | Exit the configuration interface |
| Y | When exiting, press Y if prompted to save the configuration |
Start Firmware Compilation
The following describes how to compile the firmware:
-
After connecting via SSH, enter the following command and press Enter:
cd ~/klipper && rm -rf ~/klipper/.config && rm -rf ~/klipper/out && make menuconfig -
Here,
rm -rf ~/klipper/.config && rm -rf ~/klipper/outdeletes previous compilation data and firmware -
make menuconfigcompiles the firmware. After execution, the following interface should appear -
Here,
rm -rf ~/klipper/.config && rm -rf ~/klipper/outdeletes previous compilation data and firmware, andmake menuconfigcompiles the firmware. After execution, the following interface should appearLoading... -
Select
Enable extra low-level configuration optionsand press theEnterkeyLoading... -
Enter the
Micro-controller Architecturemenu, then selectSTMicroelectronics STM32and press theEnterkeyLoading... -
Enter the
Processor modelmenu, selectSTM32H723, and press theEnterkeyLoading... -
Select
Bootloader offsetand choose:128KiB bootloaderLoading... -
Select
Clock Reference (8 MHz crystal)and choose:25 MHz crystalLoading... -
Select
Communication interfaceand choose:USB to CAN bus bridge (USB on PA11/PA12)Loading...
- Press the
Qkey, and when Save configuration appears, press theYkeyLoading... - The configuration should now be saved, and you will have exited to the command line interface
- Enter the following command to start compilation. This process may take some time.
make -j4
- The compilation is successful if the following content is output at the end
- Due to Klipper version differences, the appearance of
out/klipper.binindicates successLinking out/klipper.elf
Creating bin file out/klipper.bin
Flash Firmware
Preparation
- Before starting to flash the firmware, please first Connect via SSH using network
- Off-brand memory cards may cause flashing failures. Please try to use the recommended memory cards below for firmware updates.
- Prepare a TF card with a capacity not exceeding
32G. It is recommended that the TF card's transfer speed must beclass10or higher. SanDisk and other reputable brands are recommended.
Download Firmware
-
Use the TF card prepared earlier.
-
Format it using
SDFormatter.Loading... -
Use the left file directory in MobaXterm_Personal to find
klipper, then locate and openout.- Regular System Firmware Download Directory
- FlyOS-FAST System Firmware Download Directory
Caution- Notes for Regular Systems
- This applies to regular host systems like Raspberry Pi, FLY Pi, etc.
- The compiled firmware is located in the
/home/<your host username>/klipper/out/directory.
Loading...
Caution- Notes for
FlyOS-FASTSystem- Firmware directory for
FAST System. - The compiled firmware is located in the
/data/klipper/out/directory.
Loading... - Firmware directory for
-
Download
klipper.binto the TF card and rename it tofirmware.bin.firmware.binLoading... -
Power off the mainboard and insert the TF card.
-
Power on the mainboard and wait for 10 seconds.
-
Remove the TF card and insert it into the computer. If
firmware.bindisappears from the SD card andFLY.CURappears, the flashing was successful.Loading...