USB Firmware Compilation
Check the DIP Switch
- For normal use, please
set the DIP switch upward. - When setting the DIP switch, please
push it all the way up, otherwise it may not be able to connect to the lower computer!!!
SSH Connect to the Upper Computer
- Before compiling the firmware, you need to
connect to the upper computer's SSH via wifi.
- First, please: Use wifi to connect to the upper computer ssh
- USB Firmware Flashing
- Manually Compile USB Firmware
USB Firmware Flashing
- The FLYOS-FAST system has pre-compiled a USB firmware, so there is no need to manually compile the firmware again. Just execute the command below to flash it.
- You can also choose to
manually compile the USB firmwareto compile the firmware 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
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 previous compilation data and firmware, andmake 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... -
Enter the
Processor modelmenu, selectSTM32H723, and press Enter: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, and when Save configuration appears, press theYkey:Loading... - The configuration should now be saved, and you will exit back to the command line interface.
- Enter the following command to start compilation. This may take some time:
make -j4Loading... - If the following content is output at the end, the compilation is successful.
- Due to Klipper version differences, as long as
out/klipper.binappears, it 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 my host IP is
192.168.101.179, type it directly and press Enter.
- Open the host's WEB interface, find the configuration option in the left sidebar:
Loading... |
Loading... |
- Click
printer.cfgto enter, then clickDEVICESin the top right corner.
Loading... | Loading... |
- Click
SERIAL, then refresh.
Loading... |
Loading... |
- Copy the ID. Click where the arrow points to copy.
Loading... |
Loading... |
Filling in the USB ID
Please note: The ID below CANNOT be used!!!!
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- Close
DEVICESand 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.