USB Bridge CAN Firmware Flashing
SSH Connect to the Host
- Before compiling the firmware, you need to
connect to the host via WiFi SSH.
- First, please: Use WiFi to Connect to the Host via SSH
- USB Bridge CAN Firmware Flashing
- Manually Compile USB Bridge CAN Firmware
USB Bridge CAN Firmware Flashing
- The FLYOS-FAST system comes with a pre-compiled USB Bridge CAN firmware. There is no need to manually compile the firmware; you can flash it by executing the commands below.
- Alternatively, you can choose to
Manually Compile USB Bridge CAN Firmwareto compile the firmware yourself.
-
The default rate for the FAST system is 1M. If you need 500K, you need to modify the
canbus_bitraterate in the system configuration. -
This command flashes the
1MUSB Bridge CAN firmware.
fly-flash -d auto -h -f /usr/lib/firmware/klipper/stm32h723-128k-usbcan-1m.bin
- This command flashes the
500kUSB Bridge CAN firmware.
fly-flash -d auto -h -f /usr/lib/firmware/klipper/stm32h723-128k-usbcan-500k.bin
Firmware Compilation Quick Guide
Precautions
- Network: Ensure the host machine (Raspberry Pi, etc.) is connected to the network.
- Login Method: Must log in via SSH over the network; serial port login is disabled.
- 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 (Official Raspberry Pi OS, 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 cursor up/down to select menu items |
| Enter / Space | Confirm selection, toggle options, or enter submenus |
| ESC | Return to the previous menu level |
| Q | Exit the configuration interface |
| Y | When exiting, press Y to save the configuration if prompted |
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 -
Among these,
rm -rf ~/klipper/.config && rm -rf ~/klipper/outdeletes previous compilation data and firmware. -
make menuconfigis for compiling the firmware. After execution, the interface below should appear. -
Among these,
rm -rf ~/klipper/.config && rm -rf ~/klipper/outdeletes previous compilation data and firmware, andmake menuconfigis for compiling the firmware. After execution, the interface below should appear.Loading... -
Select
Enable extra low-level configuration optionsand press theEnterkey.Loading... -
Enter the
Micro-controller Architecturemenu, then selectSTMicroelectronics STM32, and press theEnterkey.Loading... -
Enter the
Processor modelmenu, selectSTM32H723, and press theEnterkey.Loading... -
Select
Bootloader offset, and choose:128KiB bootloader.Loading... -
Select
Clock Reference (8 MHz crystal), and choose:25 MHz crystal.Loading... -
Select
Communication interface, and choose:USB to CAN bus bridge (USB on PA11/PA12).Loading...
- Press the
Qkey, and Save configuration will appear. Then press theYkey.Loading... - The configuration should now be saved, and you will exit to the command line interface.
- Enter the following command to start compilation. This will take some time.
make -j4
- If the output below appears 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 CAN 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, just type it and press Enter.
- Open the host's WEB interface, find in the configuration options in the left sidebar:
Loading... |
Loading... |
- Click into
printer.cfg, then clickDEVICESin the top right corner.
Loading... | Loading... |
- Click
CAN, then refresh.
Loading... |
Loading... |
- Copy the ID, click where the arrow points to copy.
Loading... |
Loading... |
Filling in the CAN ID
- 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
- Add:
[mcu]
canbus_uuid: <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.