USB Firmware Compilation
Check the DIP Switch
- For normal use, please
set the DIP switch to the upward position. - When adjusting the DIP switch, ensure it is
fully pushed upward, otherwise it may fail to connect to the lower computer!!!
SSH into the Upper Computer
- Before compiling the firmware, you need to
connect to the upper computer via SSH using Wi-Fi.
- First, please: Connect to the upper computer via SSH using Wi-Fi
- USB Firmware Flashing
- Manually Compile USB Firmware
USB Firmware Flashing
- The FLYOS-FAST system comes with a pre-compiled USB firmware, so manual compilation is not required. You can flash the firmware by executing the command below.
- Alternatively, you can choose to
manually compile the USB firmwareand compile it yourself.
- Connect to the upper computer via SSH and enter the following command:
fly-flash -d auto -h -f /usr/lib/firmware/klipper/stm32h723-128k-usb.bin
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 |
Below is an introduction on how to compile the firmware:
-
After connecting via SSH, enter the following command and press the
Enterkey:cd ~/klipper && rm -rf ~/klipper/.config && rm -rf ~/klipper/out && make menuconfig -
Here,
rm -rf ~/klipper/.config && rm -rf ~/klipper/outdeletes the previous compilation data and firmware, whilemake menuconfigcompiles the firmware. After execution, the following interface should appear:Loading... -
Select
Enable extra low-level configuration optionsand press theEnterkey.Loading... -
Navigate to the
Micro-controller Architecturemenu, then selectSTMicroelectronics STM32and press theEnterkey.Loading... -
Go to the
Processor modelmenu and selectSTM32H723, then pressEnter.Loading... -
Select
Bootloader offsetand choose:128KiB bootloader.Loading... -
Select
Clock Reference (8 MHz crystal)and choose:25 MHz crystal.Loading... -
For
Communication interface, select:USB (on PA11/PA12).Loading...
- Press the
Qkey. When Save configuration appears, press theYkey.Loading... - The configuration should now be saved, and you will return to the command line interface.
- Enter the following command to start the compilation. This process may take some time.
make -j4
- If the following content is output at the end, the compilation is successful.
- Due to Klipper version differences, the appearance of
out/klipper.binalone indicates success.Linking out/klipper.elf
Creating bin file out/klipper.bin
Firmware Flashing
Execute the following command to flash the firmware.
fly-flash -d auto -h -f /data/klipper/out/klipper.bin
Searching for USB ID
- Open your browser, enter the IP address of the host computer in the address bar. For example, if the host IP is
192.168.101.179, type it in and press Enter.
- After accessing the host's WEB interface, find the following in the configuration options on the left sidebar:
Loading... |
Loading... |
- Click on
printer.cfgto enter, then click onDEVICESin the top right corner.
Loading... | Loading... |
- Click on
SERIAL, then refresh.
Loading... |
Loading... |
- Copy the ID. Click on the indicated arrow to copy.
Loading... |
Loading... |
Filling in the USB ID
The ID shown below is an example and CANNOT be used !!!!
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- Close the
DEVICESwindow and fill in the ID.
- In the configuration file, change:
[mcu]
serial: /tmp/klipper_host_mcu
- to:
[mcu host]
serial: /tmp/klipper_host_mcu
- And add:
[mcu]
serial: <Replace this with the ID you just queried>
Loading... |
Loading... |
- Fill the ID into the configuration.
- After filling in the ID, click
SAVE & RESTARTin the top right corner.
Loading... | Loading... |
- If Klipper prompts
ADC out of range, this is normal. Connect the heated bed and thermistor to the mainboard, configure the thermistor pins for the hotend and heated bed, then save and restart.
Note: All IDs appearing in this document are examples. The actual ID for each mainboard is different. Please fill in the ID you actually obtained.