BL Firmware
Tip
- Please note that the
bootloaderis pre-flashed at the factory and does not need to be re-flashed.
Entering Flash Mode
- There are two methods to enter flash mode.
- First method: With the motherboard completely powered off, short the BOOT and BOOT1 pins, then connect a data cable capable of data transfer between the motherboard and your device.
- Second method: After connecting a data cable capable of data transfer between the motherboard and your device, short the BOOT and BOOT1 pins, then press the RST key. Release the RST key, and finally disconnect the BOOT jumper.
Loading...
Flashing the Firmware
- Windows Flashing Tutorial
- Upper Computer Flashing Tutorial
- The bootloader firmware for Gemini.
- You can obtain the firmware via the following links:
- Download Firmware Package - Directly download the latest firmware archive.
- Repository Address - Visit the firmware repository.
- The firmware location is:
FLY-Firmware/MainBoard/Gemini
- Set DIP switches
3and4to the right (ON) to connect the lower computer to the upper computer via the built-in USB. - Set DIP switches
1and2to the left (OFF), otherwise it will affect the connection between the lower and upper computers.Loading...
Important Notice
To ensure successful STM32 programming, please pay attention to the following:
- Some computer USB ports may experience unstable programming due to driver or signal compatibility issues. It is recommended to try connecting to a different USB port.
- If changing ports does not resolve the issue, an effective solution is to connect via an external USB hub, which often improves compatibility.
- If the programming software reports the error shown below, also prioritize trying a USB hub. If the problem persists, please check or use the host computer for programming.
Loading...
- Programming Tool Download Link
- Download both
SetupSTM32CubeProgrammerand theSTM32 DFU Driver. - Download the firmware to any directory on your computer.
- Connect the mainboard to the computer using a Type-C data cable. Ensure the board is in
DFUprogramming mode. - In STM32CubeProgrammer, select USB mode, then refresh and connect.
Loading...
- If no error pop-up appears, the connection is successful.
Loading...
- Click the download icon on the left and select the options shown below.
Loading...
- Click
Browseas indicated by the arrow, then select the firmware you need to program.Loading... - For
Start address, enter0x08000000.- Note: If the firmware is in
HEXformat, please skip this step!!
Loading... - Note: If the firmware is in
- Click
Start automatic modebelow to begin programming the firmware.Loading... - The prompt below indicates that the firmware programming is complete.
Loading...
- Set DIP switches
1and2to the right (ON) to connect the lower computer to the upper computer via the built-in USB. - Set DIP switches
3and4to the left (OFF), otherwise it will affect the connection between the lower and upper computers.Loading... - After setting the DIP switches as described, the lower USB port will be occupied by the lower computer. Please do not connect other devices to it.
Loading...
- Install the Flashing Tool
- FLY host machine does not need to perform this step.
- If installation is required, ensure the host machine is connected to the internet.
- If the flashing tool has already been installed, you can skip this step.
sudo apt update
sudo apt install dfu-util -y
- Check Device Connection Status
- Execute the following command to confirm whether the device is successfully connected:
lsusb
- If the DFU device is not recognized, try re-entering flashing mode.
- On some system versions, the device name may vary; as long as
0483:df11appears, it indicates successful entry into flashing mode.
Loading...
- Obtain Precompiled Firmware
-
The following are precompiled firmware files. Please select the corresponding command to download based on your system type (ensure the host machine can access the internet).
-
For regular systems, use:
cd && git clone https://cnb.cool/3dmellow/FLY-Firmware.git -
For FLY host machines, use:
git clone https://cnb.cool/3dmellow/FLY-Firmware.git /data/FLY-Firmware
ln -s /data/FLY-Firmware /root/FLY-Firmware -
If the firmware package has already been downloaded, it is recommended to update to the latest version before proceeding:
cd ~/FLY-Firmware && git pull
- The previous repository is no longer maintained. If deletion is required, execute:
rm -rf ~/FLY_Katapult && /root/FLY_Katapult
- Flash the Firmware
Tip
You only need to flash one of the firmware files.
- Below is the command to flash the bootloader firmware:
sudo dfu-util -a 0 -d 0483:df11 --dfuse-address 0x08000000 -D ~/FLY-Firmware/MainBoard/Gemini/GeminiV3.bin
- If you see the message
File downloaded successfullyas indicated by the arrow in the image below, the flashing was successful.
Caution
Please ignore any error messages following the line pointed to by the red arrow!!!
Loading...
Tip
After flashing is complete, you need to completely power off the motherboard once.
Loading...