Page 1 of 1

STM32F dev board programming via DFU USB bootloader

Posted: Thu Feb 27, 2025 4:41 pm
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 :)

Re: STM32F dev board programming via DFU USB bootloader

Posted: Fri Feb 28, 2025 11:57 am
by BenR
Amazing work thanks Leigh hope all is well.

Those files have now been added in much appreciated :D