Cart

Your cart is empty.

Flashing Guide

warning

Firmware installation is intended for experienced users. An incorrect bootloader, target or connection can leave the ESC unresponsive and may damage the hardware.

This procedure restores the archived PhotonDrive bootloader and ESCape32 firmware directly over SWD. The ESC-A-150 is not a current upstream ESCape32 target, so do not install ESC-R-150 files or assume that another target is compatible.

Required hardware

  • PhotonDrive ESC-A-150
  • ST-Link V2 programmer compatible with STM32CubeProgrammer
  • USB cable for the selected programmer
warning

Disconnect the battery and all other external power before connecting the programmer. Remove the propeller and keep the motor secured.

This guide uses an ST-Link and STM32CubeProgrammer. The Prog Tool’s tested Black Magic firmware uses different host software; its ST-Link-style connector does not make it interchangeable in these steps.

Required software

The archived, board-specific bootloader and firmware are available below. They are provided for restoring an ESC-A-150 and receive no new updates.

Download original ESCape32 bootloader Download original ESCape32 firmware

Bootloader flashing

The full restore erases the ESC, installs the archived bootloader, and then installs the matching archived firmware. Existing settings will be lost.

ESC-A-150 SWD pinout
ESC-A-150 SWD pinout
  1. Connect the ST-Link V2 programmer to the ESC’s SWD connector.

    • 3.3 V to 3
    • GND to G
    • RST to R
    • SWDIO to D
    • SWCLK to C
    warning

    The connector has ESD protection, but it is not protected against incorrect wiring. Check every pin before connecting USB power.

  2. Connect the ST-Link V2 programmer to your computer.

  3. Start STM32CubeProgrammer and select the ST-Link V2 by its serial number.

  4. Click Connect and wait for the connection to be established.

  5. Select Full chip erase to erase the ESC’s flash memory.

  6. Open Erasing & Programming, select escape32-bootloader.hex, and click Start programming.

  7. Without erasing again, select escape32-firmware.hex and click Start programming. The load address is already encoded in each .hex file.

  8. Wait for programming and verification to finish.

    Bootloader flashing in STM32CubeProgrammer
    Bootloader flashing in STM32CubeProgrammer
  9. Open Option bytes, set BOOT_LOCK under Secure Protection, and click Apply.

  10. Disconnect the programmer before reconnecting the battery or any other external power.

info

Use the archived bootloader and firmware as a matched pair. Current ESCape32 update tools require a revision 4 bootloader, while the revision of this legacy archived bootloader is not recorded. Restoring both files over SWD avoids that unverified combination.

Other firmware

For another firmware project, use only a build made specifically for the ESC-A-150 and follow that project’s memory-address, bootloader and protection instructions. PhotonDrive does not publish current ESC-A-150 firmware builds.

Disconnect power before changing any wiring.

Need help with your setup? Contact us.