- Compile blackmagic firmware according to this guide https://github.com/blacksphere/blackmagic/blob/master/src/platforms/f4discovery/Readme.md#alternate-build-for-stm32f401-stm32f411-minif4-aka-blackpillv2-boards
(
make PROBE_HOST=f4discovery BLACKPILL=1
) - Connect the board to your computer while holding BOOT0 and NRST buttons to boot into STM32 bootloader
- Execute these commands to unlock the board and flash BMP firmware:
dfu-util --list
dfu-util -a 0 --device XXX:XXX --dfuse-address 0x08000000 -D ./src/blackmagic.bin -s :unprotect:force
dfu-util -a 0 --device XXX:XXX --dfuse-address 0x08000000 -D ./src/blackmagic.bin