Skip to main content

USB Bridge CAN Firmware Flashing

SSH Connect to the Host

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


USB Bridge CAN Firmware Flashing

Tip
  • The FLYOS-FAST system has a pre-compiled USB Bridge CAN firmware, so there's no need to manually compile the firmware. You can flash it by executing the command below.
  • Alternatively, you can 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/stm32f407-32k-usbcan-1m.bin
  • This command flashes the 500k USB Bridge CAN firmware
fly-flash -d auto -h -f /usr/lib/firmware/klipper/ststm32f407-32k-usbcan-500k.bin
Loading...
Loading...


Searching for CAN ID

  1. Open a 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.
Loading...
  1. Open the WEB interface of the host computer, find in the configuration options on the left sidebar:
  • For fluidd: {…} , click to enter, then find printer.cfg
Loading...
  • For mainsail: Machine, click to enter, then find printer.cfg
Loading...
  1. Click printer.cfg to enter, 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 pointed by the right arrow.
Loading...
  • In mainsail, confirm if the first arrow points to Klipper, if yes, click the copy button pointed by the right arrow.
Loading...

Filling in the CAN ID

  1. Close DEVICES and fill in the ID.
Important Notes
  • Please change in the configuration file:
[mcu] 
serial: /tmp/klipper_host_mcu

to

[mcu host] 
serial: /tmp/klipper_host_mcu
  • Add:
[mcu]
canbus_uuid: <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 nozzle and heated bed, then save and restart.
dangerous

Note: All IDs appearing in the document are examples. The actual ID for each mainboard is different; please fill in the ID you actually obtained.

Loading...