Skip to main content

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:

Firmware Directory Explanation

Folder NameDescription
ExtensionBoardFirmware for FLY modules and extension boards.
ScreenFirmware for FLY screens.
MainBoardFirmware for FLY mainboards.
ToolBoardFirmware for FLY toolboards.

Enter Programming Mode

  1. Prepare a Type-C data cable that supports data transfer.
  2. Ensure the device is completely powered off and not connected to any other devices.
  3. While the device is powered off, first insert the Type-C data cable into the device.
  4. 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

  1. 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.

  2. 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

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...
  1. Programming Tool Download Link
  2. Download both SetupSTM32CubeProgrammer and the STM32 DFU Driver.
  3. Download the firmware to any directory on your computer.
  4. Connect the mainboard to the computer using a Type-C data cable. Ensure the board is in DFU programming mode.
  5. In STM32CubeProgrammer, select USB mode, then refresh and connect.
    Loading...
  6. If no error pop-up appears, the connection is successful.
    Loading...
  7. Click the download icon on the left and select the options shown below.
    Loading...
  8. Click Browse as indicated by the arrow, then select the firmware you need to program.
    Loading...
  9. For Start address, enter 0x08000000.
    • Note: If the firmware is in HEX format, please skip this step!!
    Loading...
  10. Click Start automatic mode below to begin programming the firmware.
    Loading...
  11. The prompt below indicates that the firmware programming is complete.
    Loading...

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...