Selected for you
 
ST-LINK utility (QSTLINK2) for Linux and Windows
ST-LINK is utility for programming of STM32 microcontrollers. ST.com has ST-LINK only for Windows. Linux users use ST-LINK (texane).
One our member found another version of ST-LINK. QSTLINK2. It's program with GUI, but you can run it as terminal application.
QSTLINK2 can "read, write, verify and erase". It supports ST-LINK/V2 and ST-LINK/V2-1.
You need these rules for right run - ST-LINK/V2-1 firmware upgrade
You have to copy linux rules to /etc/udev/rules.d/

Project find here: https://github.com/fpoussin/QStlink2