1) Download openocd 2)
sudo apt-get install libusb-1.0-0-dev libtool pkg-config ./configure --enable-stlink make sudo make install