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.
| Function | What it does | Effect in flight |
|---|---|---|
| Input decoding | Reads DShot, PWM, Oneshot or serial input | Accurate throttle per motor |
| Commutation | Switches phases from back-EMF timing | Smooth, efficient rotation |
| Timing advance | Shifts switching earlier at speed | Higher top RPM, less desync |
| Telemetry output | Reports eRPM, voltage, current, temperature | Enables RPM filtering and logging |
| Protection logic | Limits current, temperature and low voltage | Reduces burned ESCs and motors |
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.
| Protocol | Type | Typical use |
|---|---|---|
| DShot300 and DShot600 | Digital, checksummed | Standard FPV quadcopters |
| Bidirectional DShot | Digital with eRPM reply | RPM filtering in Betaflight |
| Standard PWM | Analog pulse, 1-2 ms | Fixed-wing aircraft and rovers |
| Oneshot and Multishot | Shortened analog pulses | Older multirotor setups |
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.
| Firmware | Processor | License | Status |
|---|---|---|---|
| AM32 | 32-bit ARM | Open source | Actively developed |
| BLHeli_32 | 32-bit ARM | Closed source | Development ended |
| Bluejay | 8-bit | Open source | Actively developed |
| BLHeli_S | 8-bit | Partly open | Legacy, superseded |
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.
| Setting | Typical range | Trade-off |
|---|---|---|
| PWM frequency | 24-48 kHz | Smoothness against MOSFET heat |
| Timing advance | Low to medium | Top speed against efficiency |
| Startup power | Low to high | Reliable start against current spikes |
| Motor direction | Normal or reversed | Props-in or props-out layout |
| Low voltage cutoff | Off or per-cell threshold | Battery protection against sudden power loss |
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.