The following was tested on an Ubuntu Linux (14.10) box, so your mileage may vary if you are using some other platform. I used a clone "ST-Link V2" device and OpenOCD, the genuine ST-Link adapters ...
If you don't have a (working) STM32 programmer, you can use a STM32 Flasher and USB<->TTL serial adapter. Download and install: https://www.st.com/en/development ...
Adafruit has added a new product to its range this week in the form of the ST-Link Programmer and Emulator, Debugging dongle, that contains firmware that can be easily updated when required as well as ...