STM32F dev board programming via DFU USB bootloader

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.
Post Reply
LeighM
Valued Contributor
Posts: 447
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 81 times
Been thanked: 243 times

STM32F dev board programming via DFU USB bootloader

Post by LeighM »

I found a little time to play with STM32F DFU programming via the USB bootloader, this avoids needing the ST-link programmer.
This has been tested with a WeAct STM32F411CE 8MHz Black Pill dev board.

First install the STM32CubeProgrammer from www.st.com (at default location)

Here's an FCD with modified programming stage 32F411CE_BlackPill.fcdx
to go into directory C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM
32F411CE_BlackPill.fcdx
(46.02 KiB) Downloaded 53 times

And an additional batch program stm32progDFU.bat
to go into directory C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch
stm32progDFU.bat.txt
(829 Bytes) Downloaded 64 times
Connect the dev board via USB cable to the PC running Flowcode.
Hold the BOOT0 button and press and release the RST button.
The dev board is now in programming mode.
Compile to Target with Flowcode.
Press RST button to run the newly updated program.

Note to Matrix: feel free to re-distribute these via the repo if you so wish :)

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: STM32F dev board programming via DFU USB bootloader

Post by BenR »

Amazing work thanks Leigh hope all is well.

Those files have now been added in much appreciated :D

Post Reply