Skip to main content

USB Firmware Compilation

SSH Connection to the Host

Warning
  • Before compiling the firmware, you need to connect to the host via SSH using WiFi.
  • First, please: Use WiFi to Connect to Host SSH


USB Firmware Flashing

Tip
  • A USB firmware has been pre-compiled in the FLYOS-FAST system, so manual compilation is not required. You can flash it by executing the command below.
  • Alternatively, you can choose Manual USB Firmware Compilation to compile the firmware yourself.
  • Connect to the host via SSH and enter the following command:
fly-flash -d auto -h -f /usr/lib/firmware/klipper/stm32f407-32k-usb.bin
Loading...
Loading...

Search for USB ID

  1. Open a 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 directly and press Enter.
Loading...
  1. Open the host's WEB interface. In the configuration options on the left sidebar, find:
  • For fluidd: {…}. Click into it to find printer.cfg.
Loading...
  • For mainsail: Machine. Click into it to find printer.cfg.
Loading...
  1. Click into printer.cfg, then click DEVICES in the top right corner.
Loading...
Loading...
  1. Click SERIAL, then refresh.
  • Refresh in fluidd.
Loading...
  • Refresh in mainsail.
Loading...
  1. Copy the ID. Click where the arrow points to copy.
  • In fluidd, confirm the existence of ttyACM and ensure the Path by ID exists. This is the USB ID.
Loading...
  • In mainsail, confirm the existence of ttyACM and ensure the Path by ID exists. This is the USB ID.
Loading...

Fill in the USB ID

dangerous

Please note that the ID below cannot be used!!!!

serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  1. Close DEVICES and fill in the ID.
Note
  • Please change in the configuration file:
[mcu] 
serial: /tmp/klipper_host_mcu
  • to:
[mcu host] 
serial: /tmp/klipper_host_mcu
  • And add:
[mcu]
serial: <Replace here with the ID you just queried>
  • Find [MCU] in fluidd.
Loading...
  • Find [MCU] in mainsail.
Loading...
  1. Fill the ID into the configuration.
tip
  • After filling in the ID, click SAVE & RESTART in the top right corner.
Loading...
Loading...
  1. 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.
dangerous

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.

Loading...