STM32 and APM32 Firmware Update Tutorial
Important Notes
- This tutorial applies only to FLY series products. It is incompatible with other brands or models of devices. Please do not attempt.
- This tutorial is for updating firmware by entering programming mode.
- This tutorial applies only to FLY products using APM32 or STM32 series chips.
Download Firmware
You can obtain the firmware via the following links:
- Download Firmware Package - Directly download the latest firmware archive.
- Repository Address - Access the firmware repository.
Firmware Directory Explanation
| Folder Name | Description |
|---|---|
| ExtensionBoard | Firmware for FLY modules and extension boards. |
| Screen | Firmware for FLY screens. |
| MainBoard | Firmware for FLY mainboards. |
| ToolBoard | Firmware for FLY toolboards. |
Enter Programming Mode
- Prepare a Type-C data cable that supports data transfer.
- Ensure the device is completely powered off and not connected to any other devices.
- While the device is powered off, first insert the Type-C data cable into the device.
- Press and hold the device's BOOT button, then connect the other end of the cable to your computer. Release the BOOT button after the computer recognizes the device.
Precautions
-
USB Port Compatibility: Some devices may not be recognized properly on USB 3.0 ports. It is recommended to use a USB 2.0 port for programming.
-
Troubleshooting Steps for Programming Failure: If programming still fails on a USB 2.0 port, please try the following:
- Disconnect all non-essential external devices (e.g., drivers, limit switches, etc.).
- Completely power off the computer (unplug the power cord), wait a few seconds, and then restart it.
- Try using an external USB hub or switch to a different USB port.
Program the Firmware
- STM32 Programming Tutorial for Windows
- APM32 Programming Tutorial for Windows
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...
- Download the flashing tool: Download Link
- Install the DFU driver: Download and extract
DFUProgrammer. The package includes the DFU driver for APM32. Please install this driver manually. - Prepare the firmware: Copy the previously compiled firmware file to any directory on your computer (e.g., the desktop) for easy selection later.
- Enter DFU mode: Connect the mainboard to the computer using a Type-C cable. Ensure the mainboard is in DFU flashing mode (usually set via a jumper cap; for specific methods, refer to the mainboard's DFU entry instructions).
- Run the flashing tool: Open DFUProgrammer and select and configure as shown in the images below:
Loading...Loading...
- Start flashing: Click the "Start Updating Firmware" button and wait for the progress bar to complete. Once the flashing is successful, you can disconnect the Type-C cable and remove the jumper cap.
Frequently Asked Questions
Q: What should I do if the computer cannot recognize the device?
A: Please troubleshoot following these steps:
- Confirm the data cable supports data transfer (charging cables cannot be used).
- Check if the device has entered programming mode (hold BOOT while inserting USB).
- Try a different USB port on the computer, it is recommended to use a USB 2.0 port. If issues occur with a USB 3.0 port, try connecting via a USB 2.0 port or through a USB hub.
- Check if the corresponding USB driver for the chip is installed on the computer (e.g., DFU driver for STM32, virtual COM port driver for APM32, etc.).
Q: What should I do if the programming process fails or gets stuck?
A: You can try the following methods:
- Re-enter programming mode and attempt programming again.
- Change the USB port (recommend USB 2.0) or use a hub.
- Close other software that may be occupying USB resources.
- Verify the selected firmware matches the device model (e.g., mainboard, screen, toolboard, etc.).
Q: What if the device fails to start after programming?
A: Possible causes and solutions:
- After programming is complete, please completely power off the device (unplug the power), then power it on again to ensure the firmware starts normally.
- Firmware version mismatch: Re-download the correct firmware for your model and program it again.
- Programming incomplete: Re-enter programming mode and program again.
- Hardware issue: Check if the power connection is normal, or contact technical support.
Loading...