This only works for Windows, but you can easily modify it for Linux. It would roughly be the same, except you would need to modify the "linux" sections in the json files.
- Download OpenOCD for Windows: http://gnutoolchains.com/arm-eabi/openocd/ (you'll need 7zip to extract it).
OpenOCD-20181130.7z
is used in this guide. If you use a different version, you'll have to update the json files.
- Install libusb and stlink drivers
- libusb: https://zadig.akeo.ie/
- stlink server???: https://www.st.com/en/development-tools/st-link-server.html
- the STLinkWinUSB drivers also have to be installed but I have no idea where to find those yet...