STM32F405
Last updated
Last updated
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:
Download the Firmware with Bootloader (arducopter_with_bl.hex).
Put the flight controller into DFU bootloader mode (find more information under each products wiki).
Remove CM4 (only needs to be removed if being solely powered through USB due to current limitations).
Connect USB
Open STM32CubeProgrammer and ensure that "USB" is selected on the right (Red)
Click Refresh (Red) to show the device and then select it in the "Port" drop down. Click Connect (Purple).
Device memory (Red) should populate and you should get some information in the Log (Purple).
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).
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.
Reset switches back to Non-DFU mode.