Skip to main content

USB Bridge CAN Firmware Flashing

SSH Connect to the Host Computer

Warning
  • Before compiling the firmware, you need to connect to the host computer SSH via wifi
  • First, please: Connect to the host computer SSH via wifi

USB Bridge CAN Firmware Flashing

Tip
  • A pre-compiled USB Bridge CAN firmware is already available in the FLYOS-FAST system, so manual compilation is not required. Execute the command below to flash it.
  • You can also choose Manually Compile USB Bridge CAN Firmware to compile the firmware yourself.
  • The FAST system defaults to a 1M rate. If you need 500K, you need to modify the canbus_bitrate rate in the system configuration.

  • This command flashes the 1M USB Bridge CAN Firmware

fly-flash -d auto -h -f /usr/lib/firmware/klipper/stm32h723-128k-usbcan-1m.bin
  • This command flashes the 500k USB Bridge CAN Firmware
fly-flash -d auto -h -f /usr/lib/firmware/klipper/stm32h723-128k-usbcan-500k.bin
Loading...
Loading...

Searching for CAN ID

  1. 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.
Loading...
  1. Open the host's WEB interface, find in the configuration options in the left sidebar:
  • 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 CAN, then refresh.
  • Refresh in fluidd
Loading...
  • Refresh in mainsail
Loading...
  1. Copy the ID, click where the arrow points to copy.
  • In fluidd, confirm if the first arrow points to Klipper. If yes, click the copy button indicated by the right arrow.
Loading...
  • In mainsail, confirm if the first arrow points to Klipper. If yes, click the copy button indicated by the right arrow.
Loading...

Filling in the CAN ID

  1. Close DEVICES and fill in the ID.
Important Notes
  • 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>
  • 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...