STM32F dev board programming via DFU USB bootloader
Posted: Thu Feb 27, 2025 4:41 pm
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
And an additional batch program stm32progDFU.bat
to go into directory C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch 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
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
And an additional batch program stm32progDFU.bat
to go into directory C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch 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
