Skip to content

Instantly share code, notes, and snippets.

@nobodyguy
Created November 27, 2021 22:48
Show Gist options
  • Save nobodyguy/8d20448e62f0b60808bef9ea848875fd to your computer and use it in GitHub Desktop.
Save nobodyguy/8d20448e62f0b60808bef9ea848875fd to your computer and use it in GitHub Desktop.
How to turn BlackPillV2 into BMP
  1. 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)
  2. Connect the board to your computer while holding BOOT0 and NRST buttons to boot into STM32 bootloader
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment