STM32F405

To flash the STM32 range of IC's, it is recommended to use STM's official tool "STM32 Cube Programmer". Download the tool from here.

Download your selected Firmware file, either from the CBUnmanned GitHub or directly from your flight controller software distribution.

Example of Flashing ArduCopter:

  1. Download the Firmware with Bootloader (arducopter_with_bl.hex).

  2. Put the flight controller into DFU bootloader mode (find more information under each products wiki).

  3. Remove CM4 (only needs to be removed if being solely powered through USB due to current limitations).

  4. Connect USB

  5. Open STM32CubeProgrammer and ensure that "USB" is selected on the right (Red)

  6. Click Refresh (Red) to show the device and then select it in the "Port" drop down. Click Connect (Purple).

  7. Device memory (Red) should populate and you should get some information in the Log (Purple).

  8. Click on "Erasing & Programming" on the left (Red) to open a different window. Browse (Purple) for the firmware file and ensure flash settings match the screenshot (Orange). Finally Click "Start Programming" (Brown).

  9. Wait for the flash to finalise and the board to reboot fully. Please note you may have initial sensor issues if you have selected "Run After Programming" above, a complete power cycle fully solves this.

  10. Reset switches back to Non-DFU mode.

Last updated