RS232 Firmware Compilation
Start Compilation
Firmware Compilation Quick Guide
Notes
- Network: Ensure the host machine (Raspberry Pi, etc.) is connected to the network.
- Login Method: Must use SSH to log in via the network; disable serial port.
- Input Method: Keep the keyboard in English half-width mode.
SSH Login and User Switching
Use tools like MobaXterm, PuTTY, etc., to SSH into the host machine.
Switching Users:
- Standard Systems (Raspberry Pi official system, etc.)
Do not useroot. Switch to a regular user:su <username> - FLY Host Machine (FlyOS-FAST system)
Only supports logging in as therootuser (password:mellow).
Firmware Compilation Operation Guide
In the Klipper firmware configuration interface, only keyboard operations are supported; mouse usage is not possible.
| Key | Function |
|---|---|
| ↑ / ↓ | Move the cursor up/down to select menu items |
| Enter / Space | Confirm selection, toggle options, or enter submenus |
| ESC | Return to the previous menu |
| Q | Exit the configuration interface |
| Y | When exiting, press Y if prompted to save the configuration |
Start Firmware Compilation
The following describes how to compile the firmware:
-
After connecting to SSH, enter the following command and press Enter:
cd ~/klipper && rm -rf ~/klipper/.config && rm -rf ~/klipper/out && make menuconfig -
The command
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 menu Micro-controller Architecture, then select STMicroelectronics STM32 and press Enter.
Loading... -
Navigate to the menu Processor model, select STM32H723, and press Enter.
Loading... -
Select Bootloader offset, and choose: NO bootloader.
Loading... -
Select Clock Reference (8 MHz crystal), and choose: 25 MHz crystal.
Loading... -
For Communication interface, select: Serial (on USART1 PA10/PA9).
Loading...
- Select GPIO pins to set at microcontroller startup, input:
!PA15Note: The exclamation mark is uppercase.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 -j4
- If the following content appears at the end, the compilation is successful.
- Due to Klipper version differences, the appearance of
out/klipper.binindicates success:Linking out/klipper.elf
Creating bin file out/klipper.bin
Enter Flashing Mode
The upper button is the RESET button, and the lower button is the BOOT button.
- There are two methods to enter DFU mode.
- First method: With the mainboard completely powered off, press and hold the BOOT button, then connect a data cable (capable of data transfer) between the mainboard and the host computer.
- Second method: With a data cable (capable of data transfer) connected between the mainboard and your host computer, press and hold the BOOT button, then press the RST button, release the RST button, and finally release the BOOT button.
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.
Verify Firmware Startup
- If the firmware starts normally, the LED will light up.
Loading...