Skip to main content

USB Bridge CAN Firmware Flashing

SSH Connection to the Host Computer

Warning
  • Before compiling the firmware, you need to connect to the host computer via SSH using Wi-Fi.
  • First, please: Use Wi-Fi to Connect to the Host Computer via SSH


USB Bridge CAN Firmware Flashing

Note
  • The FLYOS-FAST system comes with a pre-compiled USB bridge CAN firmware, so manual compilation is not required. You can flash the firmware by executing the commands below.
  • Alternatively, you can choose to manually compile the USB bridge CAN firmware and compile it yourself.
  • The default baud rate for the FAST system is 1M. If you need 500K, you need to modify the canbus_bitrate 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...


Search for CAN 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, simply type it in and press Enter.
Loading...
  1. Open the WEB interface of the host computer. In the configuration options on the left sidebar, find:
  • 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 upper right corner.

    Loading...
    Loading...
  2. Click CAN, then refresh.

    • Refresh in fluidd
    Loading...
    • Refresh in mainsail
    Loading...
  3. Copy the ID. Click the indicated arrow to copy.

    • In fluidd, ensure the first arrow points to Klipper. If yes, click the arrow on the right to copy.
    Loading...
    • In mainsail, ensure the first arrow points to Klipper. If yes, click the arrow on the right to copy.
    Loading...

Fill in the CAN ID

  1. Close DEVICES and fill in the ID.
Note
  • In the configuration file, change:
[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 upper 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.
Danger

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...