openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg -c "init; reset halt; flash write_image erase test.hex; reset; exit"
openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg
openocd -f "C:/xpack-openocd-0.11.0-5/scripts/interface/stlink-v2.cfg" -f "C:/xpack-openocd-0.11.0-5/scripts/target/stm32f1x.cfg"