Resource remapping is a powerful Betaflight feature that lets you change which processor pins are used for certain functions on your flight controller, such as motor outputs, servos, LED strips, SoftSerial and more. It can save an FC with a damaged solder pad, lets you repurpose an unused motor output, move a servo to another pad, or solve awkward wiring problems.
New to FPV? Get started with Betaflight in this beginner’s guide: https://oscarliang.com/betaflight-firmware-setup/.
Why Do We Need Resource Remapping?
Resource remapping can be useful when:
- a motor signal pad is damaged
- you want to use a spare motor output for a servo
- you need an extra SoftSerial connection
- you want to move the LED strip signal to another pad
- your FC or 4in1 ESC wiring gives you the wrong motor order
- you want to repurpose an unused pad for something else
For simple jobs, resource remapping can be surprisingly easy. You might only need a couple of CLI commands.
For unusual remaps, however, you may have to look a little deeper into the MCU datasheet, and understand the technical aspects such as timers, alternate functions and DMA.
Don’t worry if those terms mean nothing to you yet. We will start with the basics and introduce them gradually.
Resource Remapping Basics
What Is a Resource?
The processor on your flight controller has many physical pins.
On STM32 processors, these pins have names such as:
PA0 PB6 PC7
Betaflight usually displays them without the P:
A00 B06 C07
The flight controller manufacturer connects these processor pins to different components and solder pads on the board.
Betaflight then assigns jobs, or resources, to them.
For example:
resource MOTOR 1 B06
It means Betaflight uses MCU pin PB6 for Motor 1.
Another example:
resource LED_STRIP 1 A08
It means PA8 is assigned to the LED strip output.
The important thing to understand is that labels such as MOTOR 1, SERVO 1 and LED_STRIP are software assignments.
PB6 is not physically a “Motor 1 pin”. It is simply a processor pin that Betaflight has been configured to use for Motor 1.
We are not rewiring the MCU, we are just changing what that pin does.
Back Up Betaflight Configuration
Before resource remapping, save a backup. It’s also useful for reference later on.
In the CLI, I normally recommend:
dump
Save the output somewhere safe.
If something goes wrong, you then know what the original configuration looked like.
How to See Your Current Resources
Open the CLI and enter:
resource
You may see something similar to:
resource MOTOR 1 B07 resource MOTOR 2 B06 resource MOTOR 3 B05 resource MOTOR 4 B04 resource SERIAL_TX 1 A09 resource SERIAL_RX 1 A10 resource LED_STRIP 1 A08
This tells you which MCU pins have been assigned to configurable functions.
You can also use this command:
resource show
The command resource shows the configured resource assignments, while resource show displays the currently active hardware assignments more comprehensively. Changes normally require save and a reboot before the active state reflects them.
Understanding the Resource Command
The general syntax is:
resource FUNCTION NUMBER PIN
For example:
resource MOTOR 1 B06
means:
FUNCTION = MOTOR NUMBER = 1 PIN = PB6
So:
resource MOTOR 3 A02
assigns Motor 3 to PA2.
To remove an assignment, use:
resource MOTOR 3 NONE
Some resources only exist once and therefore do not need a number.
For example:
resource BEEPER B06
Example: Swapping Motor Outputs
You can also change which motor number is assigned to existing motor-output pins.
Suppose:
resource MOTOR 1 A06 resource MOTOR 2 A07 resource MOTOR 3 A11 resource MOTOR 4 A12
If your wiring means Motors 1 and 2 are reversed, you could exchange their pin assignments.
First clear them:
resource MOTOR 1 NONE resource MOTOR 2 NONE
Then:
resource MOTOR 1 A07 resource MOTOR 2 A06 save
Because these were already working motor outputs, there is usually little hardware mystery involved.
Why Some Resource Remaps Don’t Work
If resources are just software assignments, can’t I assign any function to any free pin?
Unfortunately, no.
Different MCU pins have different hardware capabilities.
Just like your computer, you can rename a USB port to “HDMI”, but that doesn’t magically make it produce an HDMI signal.
Similarly, telling Betaflight that PA3 is a servo output only works if PA3 has the hardware required to generate the servo signal.
The resource command assigns a job to a pin, but the MCU determines what jobs that pin is physically capable of performing.
A simplified overview of the typical functions and their pin requirements:
| Function | What the pin needs |
|---|---|
| Simple GPIO / PINIO | GPIO capability |
| Status LED | GPIO capability |
| ADC battery/current input | ADC-capable pin |
| Hardware UART | Correct UART peripheral on that pin |
| Servo output | Suitable hardware timer |
| SoftSerial | Suitable timer-capable pin |
| LED_STRIP | Suitable timing hardware and DMA |
| Motor/DShot | Requirements depend on MCU and DShot implementation |
How to Find Out Pin Hardware Capabilities?
To find out what the pins can do, you can look it up in the MCU datasheet, especially the pinout / alternate-function tables.
For example, in an STM32F411 datasheet there is a table called “Alternate function mapping.” For each pin, such as PA0, it shows which internal peripherals can be connected to it under AF0–AF15. ST lists PA0, for example, with timer functions including TIM2_CH1 and TIM5_CH1, as well as other peripheral functions.
Typically, a pin’s hardware capability might look like this:
PA0 ├── GPIO ├── AF1 → TIM2_CH1 ├── AF2 → TIM5_CH1 ├── AF7 → USART2_CTS ├── ADC input └── other functions depending on MCU
Timers
Many flight controller functions need very precise timing. STM32 processors provide dedicated hardware timers for this.
Timers are commonly used for things such as:
- servo PWM
- motor outputs
- SoftSerial
- LED strip timing
- pulse measurement
A pin may be connected to one or more timer channels, such as:
PB6 → TIM4_CH1
If you remap a timer-dependent function onto a pin that has no suitable timer connection, it may not work.
Timer sharing can also matter. Several pins can use different channels of the same timer, and some functions cannot share that timer because they require different timing settings.
So for some remaps, you need to check:
timer <pin> list
and:
timer show
Alternate Functions
An MCU pin can often connect internally to several peripherals. STM32 calls these Alternate Functions (AF).
For example, one pin might be capable of:
GPIO TIM3_CH1 USART2_TX SPI1
Another pin may support a completely different set.
These capabilities are fixed by the MCU design. Resource remapping cannot create a UART, timer, ADC, or other peripheral connection that does not already exist on that pin.
You can find these capabilities in the MCU datasheet, especially the Alternate Function mapping table.
DMA
DMA (Direct Memory Access) is hardware that allows peripherals to move data without making the CPU handle every individual transfer. Betaflight uses DMA for some high speed or timing sensitive functions, such as DShot.
On some MCUs, particularly F4 and F7, DMA routing is relatively restricted. Two different functions may require the same DMA resource and conflict with each other.
So even if a pin has the correct timer, a remap may still fail because there is no suitable DMA route available.
For advanced remapping, Betaflight provides commands such as:
dma show
dma pin <pin> list
Different MCUs Have Different Capabilities
Do not assume a remap that works on one flight controller will work on another.
An F411, F405, F722, F745, H7, and other STM32 processors can have different:
- alternate-function mappings
- timers
- timer channels
- DMA routing
- peripheral availability
Even two flight controllers that both have a pad labelled M1 may connect that pad to completely different MCU pins (that might have completely different set of capabilities).
The Flight Controller PCB Matters Too
The MCU is only part of the picture.
Some solder pads connect directly to the processor, others may have extra components in between, for example:
- MCU pin → transistor → buzzer pad
- MCU pin → resistor/capacitor network → camera control pad
Resource remapping cannot remove those components.
For unusual remaps, the MCU datasheet tells you what the pin can theoretically do, while the flight controller schematic tells you what is actually connected to it.
Which Pad Should You Use?
If you are unable to look up the datasheet, you just have to perform trial and error.
But try to use a spare pad that was originally designed for a similar job.
For example, if a motor signal pad is damaged, the first thing to try should be an unused motor output such as M5, M6, M7 or M8. Moving a motor to some unrelated pin can run into DShot/DMA limitations.
For common functions like SoftSerial and PINIO, PPM and LED_STRIP pins are usually good candidates.
For remapping hardware UART, you should use another actual UART pad. Don’t remap without researching the MCU datasheet first. If you run out of hardware serial port (aka UART), you can try softserial: https://oscarliang.com/betaflight-soft-serial/
| What you need | Try these first |
|---|---|
| Motor output | Another unused MOTOR output |
| Servo output | Unused SERVO output, or unused MOTOR output |
| Hardware UART | Another actual UART TX/RX pad |
| SoftSerial TX | Unused LED_STRIP or PPM pad |
| LED_STRIP | Another known LED/timer-capable output; otherwise this becomes an advanced remap |
| ADC / analog input | Another known ADC-capable pad only |
| Simple PINIO/GPIO | LED_STRIP, PPM, spare motor/UART signal pads can often be candidates |
Remapping Beeper
It’s possible to remap beeper, but I don’t recommend doing it.
That’s because between the processor and the beeper solder pad, there is a transistor. The beeper can draw a fair amount of current, so a transistor is needed to driver the beeper. The transistor handles the current for the processor, and it’s controlled by a signal from the processor. If you connect the beeper directly to the STM32 processor you could potentially fry it.
If you really want to remap beeper, you will need to build an external power circuit like this. This is an example for the CC3D FC’s, for the most reliable choice of component and circuit please consult your own FC manufacturer.
Remapping Voltage Sensor, Current Sensor and RSSI
These are all “ADC” resources – analogue to digital converters.
- ADC_Batt – battery voltage input
- ADC_Curr – current sensor input
- RSSI – RSSI input
You can remap these 3 resources to each other, but you can’t remap these to anything else.
You Can’t Remap These Pads
- SPI/I2C pins: may already be connected to the gyro, barometer, flash memory or other onboard hardware. Randomly stealing these could stop the FC working correctly.
- SBUS/inverted receiver pads: may have an inverter or other circuitry between the pad and MCU.
- CAMERA_CONTROL: commonly has resistors/capacitors attached to it, so it isn’t a clean general-purpose digital output.
- 9V, 5V, 4V5, VBAT, GND, Camera Input/Output obviously, these aren’t MCU signal resources at all, so you can’t remap them.
Changing Motor Order the Easy Way
You no longer need to use resource remapping to change motor output orders. There is now a wizard in the configurator that help you with that. It’s way more convenient.
Here is a demo:
Final Thoughts
For basic resource remapping in Betaflight, you do not need to become an STM32 expert. If you are simply remapping LED_Strip to SoftSerial, or moving existing motor output to another, It’s pretty straightforward. The deeper concepts become important when you want to perform unusual remapping such as turning a different pad as motor output or servo output. At that point, you need to dig into the MCU spreadsheet to confirm if the spare pin supports it.
Edit History
- Oct 2017 – Tutorial created
- Feb 2022 – Updated for Betaflight 4.3
- Oct 2026 – Updated for Betaflight 2026.6





