Wired Connection Klipper Configuration
- The STM32F072 must be flashed with firmware and connected to Klipper; otherwise, wired connection operation is not supported.
Start Compilation
Below is an introduction on 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 following interface should appear:Loading... -
Select Enable extra low-level configuration options and press Enter:
Loading... -
Navigate to the Micro-controller Architecture menu, then select STMicroelectronics STM32 and press Enter:
Loading... -
Go to the Processor model menu, select STM32F072, and press Enter:
Loading... -
Select Bootloader offset, and choose: (No bootloader):
Loading... -
For Communication interface, select: USB (on PA11/PA12):
Loading...
- Press the
Qkey, and when Save configuration appears, press theYkey:Loading... - The configuration should now be saved, and you will return to the command line interface.
- Enter the following command to start the compilation. This process may take some time:
make -j4Loading... - If the following content appears at the end, the compilation is successful:
- Due to differences in Klipper versions, as long as
out/klipper.binappears, it indicates success:Linking out/klipper.elf
Creating bin file out/klipper.bin
Enter Flash Mode
- With the AirClick powered off, press and hold the BOOT button on the STM32, then connect the STM32's programming port to the host computer via Type-C.
Loading...
Flash the Firmware
-
Install the Flashing Tool
- FLY host does not need to install the flashing tool.
- Note: The host must be connected to the internet for proper installation.
- No need to install if already installed.
sudo apt update
sudo apt install dfu-util -y- Run the following command to check if the connection is successful.
lsusb-
If no DFU device is found, try re-entering flashing mode.
-
Due to system version differences, it may display other names. If
0483:df11is present, it indicates successful entry into flashing mode.Loading...
- Flash the Firmware
- Execute the code below to start flashing.
sudo dfu-util -a 0 -d 0483:df11 --dfuse-address 0x08000000 -D ~/klipper/out/klipper.bin- If the content shown by the arrow in the image below,
File downloaded successfully, appears, the flashing is successful.
Loading...TipAfter flashing is complete, the mainboard needs to be completely powered off once.
Search for USB ID
- Connect the AirClick's programming port to the host computer's USB port. Do not press the BOOT button, otherwise the ID cannot be searched.
Loading...
Precautions
- Must connect to the host computer via SSH, please use network login to connect to the host computer (such as Raspberry Pi and other devices).
- Before operation, ensure the motherboard has been flashed with the USB firmware.
- This tutorial is only applicable for Motherboard ID search, not for Toolboard ID search.
- Please confirm the motherboard is connected to the host computer's USB port using Type-C.
- To view the Toolboard ID, please refer to the relevant tutorial in the corresponding product directory.
Operation Steps
Search for USB Device ID
- Execute the following command to list all USB serial device IDs:
ls /dev/serial/by-id/*
⚠️ Important Note: Unusable IDs
After executing the command, please identify and avoid using the following two types of IDs:
| ID Characteristic | Reason Explanation | Example |
|---|---|---|
usb-1a86_USB_Serial-if00-port0 | This is the default name for generic serial chips like CH340, cannot be used for configuration. | /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 |
Contains katapult | Indicates the device is in bootloader mode, Klipper firmware must be flashed before it can be used. | /dev/serial/by-id/usb-katapult_xxxxxxxxxxxx |
Execution Result Explanation:
- Normal Situation: The terminal will display an ID similar to the example below (the image is for illustration only).
Loading...
- Troubleshooting for Abnormal Issues
If multiple IDs appear, please select the corresponding ID based on your motherboard's MCU model.
Fill the USB ID into the Configuration
Loading... |
Loading... |
Note: All IDs appearing in the document are examples. The actual ID for each motherboard is different. Please modify and fill in based on the ID you actually obtained.
Fill in the USB ID
- Find
[mcu], then replace it.
- Please replace in the configuration file:
- Please do not configure
canbus_uuid:.
[mcu]
serial: <Replace here with the ID you just queried>
- Reference
Loading... |
Loading... |
- Click the
SAVE & RESTARTbutton in the upper right corner. After clicking, it will automatically save and restart Klipper.