AM32

On this page 7

AM32 is an open-source firmware for 32-bit electronic speed controllers (ESCs) that converts throttle commands from the flight controller into precisely timed three-phase drive for brushless motors. Among drone hardware, it runs on ESCs built around ARM Cortex-M microcontrollers and has become the main open alternative for 32-bit boards after development of the closed BLHeli_32 firmware ended.

In drones, AM32 sits between the flight controller and the motors. It accepts DShot, PWM and other protocols, performs sensorless commutation using back-EMF detection, and can report RPM, voltage, current and temperature back to the flight controller.

How AM32 drives a brushless motor

A brushless motor needs its three phases energized in the correct sequence at the correct moment. AM32 performs six-step trapezoidal commutation: in each step two phases are driven and the third floats, and the firmware measures the back-EMF zero crossing on the floating phase to determine rotor position without hall sensors.

Motor speed is set by the PWM duty cycle applied to the MOSFETs, while timing advance shifts commutation slightly earlier to compensate for winding inductance at high RPM. At low speed, back-EMF is weak, so AM32 offers a sine startup mode that spins the motor smoothly until reliable zero-crossing detection is possible.

The table below lists the main firmware functions and what each one controls.

FunctionWhat it doesEffect in flight
Input decodingReads DShot, PWM, Oneshot or serial inputAccurate throttle per motor
CommutationSwitches phases from back-EMF timingSmooth, efficient rotation
Timing advanceShifts switching earlier at speedHigher top RPM, less desync
Telemetry outputReports eRPM, voltage, current, temperatureEnables RPM filtering and logging
Protection logicLimits current, temperature and low voltageReduces burned ESCs and motors
Core functions of AM32 firmware

Supported hardware and protocols

AM32 targets 32-bit microcontrollers from several families, including STM32, GD32 and AT32 parts. Each ESC model needs a matching target build that defines its pin layout, MOSFET driver and sensing circuitry, so flashing the wrong target can leave an ESC unusable or damage it.

Most FPV setups use bidirectional DShot, in which the ESC answers each throttle frame with an eRPM value on the same wire. This feature feeds the RPM filter in flight controller firmware such as Betaflight, which removes motor noise from gyro data with very little latency.

ProtocolTypeTypical use
DShot300 and DShot600Digital, checksummedStandard FPV quadcopters
Bidirectional DShotDigital with eRPM replyRPM filtering in Betaflight
Standard PWMAnalog pulse, 1-2 msFixed-wing aircraft and rovers
Oneshot and MultishotShortened analog pulsesOlder multirotor setups
Input protocols commonly used with AM32

AM32 compared with other ESC firmware

Drone ESC firmware falls into 8-bit and 32-bit families. BLHeli_S and its open successor Bluejay run on 8-bit chips, while BLHeli_32 and AM32 run on 32-bit chips with more processing headroom. The practical difference lies in licensing, support status and features.

The following comparison summarizes the main options a builder encounters.

FirmwareProcessorLicenseStatus
AM3232-bit ARMOpen sourceActively developed
BLHeli_3232-bit ARMClosed sourceDevelopment ended
Bluejay8-bitOpen sourceActively developed
BLHeli_S8-bitPartly openLegacy, superseded
Comparison of common drone ESC firmware

For a 32-bit ESC, AM32 offers ongoing updates and community fixes that a discontinued closed firmware cannot provide. BLHeli_32 boards still fly well, but newly found bugs there will not be corrected.

Configuring and flashing AM32

AM32 is configured through a dedicated configurator connected over the flight controller’s passthrough mode, so the ESCs stay installed in the drone. The tool reads each ESC, shows its firmware target and version, and writes settings to all four channels of a 4-in-1 ESC at once.

The most frequently adjusted settings are listed below.

SettingTypical rangeTrade-off
PWM frequency24-48 kHzSmoothness against MOSFET heat
Timing advanceLow to mediumTop speed against efficiency
Startup powerLow to highReliable start against current spikes
Motor directionNormal or reversedProps-in or props-out layout
Low voltage cutoffOff or per-cell thresholdBattery protection against sudden power loss
Key AM32 settings and their trade-offs

Before flashing, a builder should confirm the exact target name against the ESC hardware. Converting an ESC from BLHeli_32 to AM32 usually requires a bootloader installed by the manufacturer or flashed with a hardware programmer, which some boards do not allow.

Limitations and common mistakes

AM32 is mature, yet several pitfalls recur. Most are configuration errors rather than firmware defects, and they show up as rough motors, failed arming or ESC desync under hard throttle changes.

  • Wrong target flashed: the ESC does not start or drives the wrong pins.
  • Mismatched settings across channels produce motors that respond unevenly.
  • Overly high timing advance wastes energy and heats the motors.
  • Too-low startup power on large motors causes stutter on arming.
  • Disabled bidirectional DShot removes RPM data that the flight controller expects.

AM32 also cannot fix weak hardware: undersized MOSFETs, poor capacitors or inadequate cooling limit current regardless of firmware quality. Proper filtering and a low-ESR capacitor at the power input remain essential.

Telemetry quality also depends on the board. Current sensing requires a shunt resistor and amplifier on the ESC, so some low-cost 4-in-1 boards report voltage and eRPM but no reliable current value. Builders who need accurate consumption figures should verify this before relying on the reported milliampere-hours, and calibrate the current scale against a known load.

In everyday language

A drone motor cannot spin by itself; a small electronic board called an ESC tells it exactly when to push. AM32 is the software inside that board, a set of instructions that turns the flight computer’s requests into motor movement.

Because AM32 is free and openly developed, anyone can inspect it and improve it. That keeps the speed controllers of many drones updated, much like a phone that keeps receiving fixes instead of being abandoned.

Seen in the real world

A hobbyist rebuilds a 5-inch freestyle quadcopter whose 4-in-1 ESC shipped with BLHeli_32. Since that firmware no longer receives updates, the builder checks that the manufacturer offers an AM32 target for the board, then flashes it through the flight controller’s passthrough mode.

In the configurator, the builder sets a PWM frequency of 48 kHz, enables bidirectional DShot, and reverses two motors for a props-out layout. Betaflight then receives eRPM telemetry from every motor, and the RPM filter is enabled.

On the first test pack, the motors start cleanly and run cooler, and the gyro logs show noticeably less motor noise than before. The quad now runs actively maintained firmware without any change to its hardware.