Friday, May 24, 2024
HomeDroneThe way to Backup Flight Controller Utilizing STM32CubeProgrammer (Saving Firmware and Config)

The way to Backup Flight Controller Utilizing STM32CubeProgrammer (Saving Firmware and Config)

An enormous thanks to @John_Gardi on X for the tip on tips on how to again up and restore flight controllers utilizing STM32CubeProgrammer. This instrument reads the processor’s reminiscence, making a whole backup of the firmware and configurations in a single file, which you’ll later restore.

A number of the hyperlinks on this web page are affiliate hyperlinks. I obtain a fee (at no further value to you) in the event you make a purchase order after clicking on certainly one of these affiliate hyperlinks. This helps assist the free content material for the neighborhood on this web site. Please learn our Affiliate Hyperlink Coverage for extra info.


I’ve solely briefly examined this technique. Whereas it appears to work effectively, I counsel warning. I’m not answerable for any harm or configuration loss to your FC attributable to following these directions. All the time again up your flight controller utilizing typical strategies earlier than attempting this one.

For a protected backup/restore technique, see this information:

Why It Issues?

In my restricted testing, I efficiently switched between two totally different Betaflight variations, retaining all personalized settings. The backup and restore course of took solely about 30 seconds, making it an efficient and environment friendly technique.

This technique ought to work with any flight controller utilizing STM32 processors, however I’ve examined it with F405 up to now. It ought to work on each Betaflight and iNav flight controllers.


Get STM32CubeProg right here:

Enter DFU Mode

Betaflight Configurator Ports Dfu Mode

Observe this information to place your flight controller in DFU mode:

Shut Betaflight Configurator, however depart the FC linked to your laptop (nonetheless in DFU mode).

Connecting STM32CubeProg

Cubeprogrommer Connect Usb Flight Controller

Run STM32CubeProgrammer.

Within the dropdown record subsequent to ‘join’, choose “USB”, then click on ‘Join’.

Studying Flight Controller

Cubeprogrommer Read All Flight Controller

After connecting, select ‘Learn all’. This reads the complete processor reminiscence which may then be saved.

Backing Up Knowledge

Stm32cubeprogrommer Flight Controller Save As

To save lots of the info, choose “Save As”.

It will save each the firmware and all of the settings in a single file. The scale of the saved file ought to match the processor reminiscence – both 512KB or 1MB relying on the kind of FC processor. Be taught extra about FC processor right here:

Restoring Knowledge

Stm32cubeprogrommer Flight Controller Open File

To revive a flight controller, click on “Open file” to open the saved file.

Then click on “Obtain” choice (within the prime proper blue field) to jot down the info to the flight controller. The method takes about 30 seconds.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments