Skip to main content

STM32 and APM32 Firmware Update Tutorial

Important Notes
  • This tutorial applies only to FLY series products. Devices of other brands or models are not compatible. Do not attempt.
  • This tutorial is for updating firmware by entering flash 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 Path Description

Folder NameDescription
ExtensionBoardFirmware for FLY modules and expansion boards
ScreenFirmware for FLY screens
MainBoardFirmware for FLY motherboards
ToolBoardFirmware for FLY tool boards

Entering Flash 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 cable into the device.
  4. Press and hold the BOOT button on the device, then insert the other end of the cable into the computer. Release the BOOT button once the computer recognizes the device.

Notes

  1. USB Port Compatibility: Some devices may not be properly recognized on USB 3.0 ports. It is recommended to use a USB 2.0 port for flashing.

  2. Flashing Failure Troubleshooting Steps: If flashing fails on a USB 2.0 port, try the following:

    • Disconnect all unnecessary external devices (e.g., drivers, endstops).
    • Completely power off the computer (unplug the power cable), wait a few seconds, then restart.
    • Use an external USB hub or try a different USB port.

Flashing Firmware

Notice

To ensure successful STM32 flashing, please note the following:

  • The USB port on some computers may cause unstable flashing due to driver or signal compatibility issues. It is recommended to try a different USB port for connection.
  • If changing ports does not work, an effective solution is to connect via an external USB hub, which often improves compatibility.
  • When the flashing software reports the error shown below, please also prioritize trying a USB hub. If the issue persists, check or use the host computer for flashing.
    Loading...
  1. Flashing tool Download Link
  2. You need to download SetupSTM32CubeProgrammer and STM32 DFU Driver
  3. Download the firmware to any directory on your computer
  4. Connect the motherboard to the computer using a Type-C cable, ensuring it has entered dfu flashing mode
  5. In STM32CubeProgrammer, select USB mode, refresh, and connect
    Loading...
  6. If no error popup appears, the connection is successful.
    Loading...
  7. Click the download icon on the left and check the following options
    Loading...
  8. Click Browse as indicated by the arrow, then select the firmware you need to flash
    Loading...
  9. Set Start address to 0x08000000
    • Note: If the firmware is in HEX format, please skip this step!!
    Loading...
  10. Click Start automatic mode below to begin flashing the firmware
    Loading...
  11. The following prompt indicates that the firmware flashing is complete
    Loading...

Frequently Asked Questions

Q: What should I do if the computer doesn't recognize the device?
A: Follow these steps to troubleshoot:

  • Ensure the data cable supports data transfer (charging cables won't work).
  • Check that the device has entered flash mode (hold BOOT, then plug in USB).
  • Try a different USB port on the computer. Use a USB 2.0 port; if using a USB 3.0 port causes issues, try a USB 2.0 port or connect via a USB hub.
  • Verify that the correct USB driver for the chip is installed on the computer (e.g., DFU driver for STM32, virtual serial port driver for APM32).

Q: What if the flashing process fails or gets stuck?
A: Try the following methods:

  • Re-enter flash mode and attempt flashing again.
  • Change the USB port (recommend USB 2.0) or use a hub.
  • Close other software that may be using USB resources.
  • Confirm that the selected firmware matches the device model (e.g., motherboard, screen, tool board).

Q: What if the device won't start after flashing?
A: Possible causes and solutions:

  • After flashing, completely power off the device (unplug the power), then power it back on to ensure the firmware starts properly.
  • Firmware version mismatch: Re-download the correct firmware for your model and flash again.
  • Incomplete flashing: Re-enter flash mode and flash again.
  • Hardware issue: Check the power connection or contact technical support.
Loading...