RS232 Firmware Compilation
Start Compilation
Brief Guide to Firmware Compilation
Notes
- Network: Ensure the host (Raspberry Pi, etc.) is connected to the internet.
- Login Method: Must log in via SSH over the network; serial port access is disabled.
- 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.
Switch User:
- Standard System (Official Raspberry Pi system, etc.)
Do not useroot; switch to a regular user:su <username> - FLY Host System (FlyOS-FAST system)
Only supports login asrootuser (password:mellow)
Firmware Compilation Operation Guide
In the Klipper firmware configuration interface, only keyboard operations are supported; the mouse cannot be used.
| Key | Function |
|---|---|
| ↑ / ↓ | Move cursor up/down to select menu items |
| Enter / Space | Confirm selection, check options, or enter submenus |
| ESC | Return to the previous menu |
| Q | Exit the configuration interface |
| Y | If prompted when exiting, press Y to save the configuration |
Start Firmware Compilation
The following describes 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 -
Where
rm -rf ~/klipper/.config && rm -rf ~/klipper/outdeletes previous compilation data and firmware -
make menuconfigcompiles the firmware, and after execution, the following interface should appearLoading... -
Select Enable extra low-level configuration options and press Enter
Loading... -
Enter the menu Micro-controller Architecture and select STMicroelectronics STM32, then press Enter
Loading... -
Enter the menu Processor model, select STM32H723, and press Enter
Loading... -
Select Bootloader offset, choose:NO bootloader
Loading... -
Select Clock Reference (8 MHz crystal), choose:25 MHz crystal
Loading... -
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, then press theYkeyLoading... - The configuration should now be saved and you will be returned to the command line interface
- Enter the following command to start compilation; it may take some time
make -j4
- If the following content is output at the end, the compilation is successful
- Due to Klipper version issues, the appearance of
out/klipper.binalone indicates successLinking out/klipper.elfCreating bin file out/klipper.bin
Enter Flashing Mode
The top is the RESET button, and the bottom is the BOOT button
- There are two methods to enter DFU
- First method: With the mainboard completely powered off, hold the BOOT button, then connect one end of a data cable (with data transmission capability) to the mainboard and the other end to the host computer.
- Second method: Connect one end of a data cable (with data transmission capability) to the mainboard and the other end to the host computer. Hold the BOOT button, then press the RST button. Release the RST button, and finally release the BOOT button.
Loading...
Flash Firmware
-
Install the flashing tool
- No need to install the flashing tool for the FLY host computer
- If you need to install it, please note: The host computer must have internet access for proper installation
- If already installed, there is no need to install again
sudo apt updatesudo apt install dfu-util -y -
Run the following command to check if the connection is successful.
lsusb-
If no DFU device is found, please try re-entering flashing mode
-
Due to system version differences, it may display a different name. If you see
0483:df11, it indicates that the flashing mode has been enteredLoading...
-
-
Flash the firmware
- Run the command below to start flashing. Replace
<full path of firmware file>with the actual firmware file path
sudo dfu-util -a 0 -d 0483:df11 --dfuse-address 0x08000000 -D <full path of firmware file> - Run the command below to start flashing. Replace
-
If the message
File downloaded successfullyappears as shown below, the flashing is successfulLoading...TipAfter flashing is complete, be sure to completely power off the motherboard once.
Confirm Firmware Startup
- If the firmware starts normally, the LED will light up.
Loading...