Wired Connection Klipper Configuration
- The STM32F072 must be flashed with firmware and connected to Klipper; otherwise, wired connection operations are 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 -
Here,
rm -rf ~/klipper/.config && rm -rf ~/klipper/outdeletes previous compilation data and firmware. -
make menuconfigcompiles 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, choose: (No bootloader):
Loading... -
For Communication interface, select: USB (on PA11/PA12):
Loading...
- Press the
Qkey. 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 compilation. This process may take some time:
make -j4Loading... - If the following output appears, the compilation is successful:
- Due to Klipper version differences, the presence of
out/klipper.binindicates success:Linking out/klipper.elf
Creating bin file out/klipper.bin
Enter Flashing 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 machine does not need to install the flashing tool.
- If you need to install it, please note: the host machine must be able to connect to the internet for proper installation.
- If already installed, no need to reinstall.
sudo apt update
sudo apt install dfu-util -y -
Execute 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:df11appears, 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 (e.g., Raspberry Pi).
- Before proceeding, ensure the mainboard has been flashed with the USB firmware.
- This tutorial is only applicable for Mainboard ID lookup, not for Toolboard ID lookup.
- Confirm the mainboard is connected to the host computer's USB port via Type-C.
- To look up the Toolboard ID, please refer to the relevant tutorial in the corresponding product directory.
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 Characteristics | Reason | Example |
|---|---|---|
usb-1a86_USB_Serial-if00-port0 | This is the default name for generic serial chips like CH340 and cannot be used for configuration. | /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 |
Contains katapult | Indicates the device is in bootloader mode. It must be flashed with Klipper firmware before use. | /dev/serial/by-id/usb-katapult_xxxxxxxxxxxx |
Execution Result Explanation:
- Normal Case: 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 mainboard's MCU model.
Enter the USB ID into the Configuration
Loading... |
Loading... |
Note: All IDs appearing in this document are examples. The actual ID for each mainboard is different. Please modify and enter based on the ID you actually obtained.
Enter the USB ID
- Locate
[mcu], then replace it.
- Please replace in the configuration file:
- Do not configure
canbus_uuid:.
[mcu]
serial: <Replace here with the ID you just queried>
- Reference
Loading... |
Loading... |
- Click the
SAVE & RESTARTbutton in the top right corner. After clicking, Klipper will automatically save and restart.