this is a fork off of a fork of the blackmagick repo which hasn't seen an update in ages and for which pre-built binaries are not present anywehre and for which the 'support' page on the website is permaunderconstruction.
anyhoo. the thing wouldn't build on my machine until i tweaked the makefiles.
binaries are in the /src dir
dfu-util -d 1d50:6018,1d50:6017 -s0x02000:leave -D src/blackmagic.bin
should do the trick.
here's the og readme which you should probably ignore
Firmware for the Black Magic Debug Probe.
The Black Magic Probe is a modern, in-application debugging tool for embedded microprocessors. It allows you see what is going on 'inside' an application running on an embedded microprocessor while it executes. It is able to control and examine the state of the target microprocessor using a JTAG or Serial Wire Debugging (SWD) port and on-chip debug logic provided by the microprocessor. The probe connects to a host computer using a standard USB interface. The user is able to control exactly what happens using the GNU source level debugging software, GDB.
See online documentation at https://github.com/blacksphere/blackmagic/wiki
Binaries from the latest automated build are at http://builds.blacksphere.co.nz/blackmagic