1..\openocd.exe -f .\stlink.cfg -c "transport select hla_swd" -f .\stm32f4x.cfg
2.telnet localhost 4444
3.reset
4.halt
5.flash write_image three.bin 0x08010000
'-c', 'transport select hla_swd',
或者.\openocd.exe -f .\stlink.cfg -f .\stm32f4x.cfg -c "program test.bin exit 0x08010000"
https://blog.csdn.net/yazhouren/article/details/72898821
target remote:3333
monitor reset halt?
b main
c
l? 代碼
info break
.\openocd.exe -c "tcl_port disabled; telnet_port disabled" -f ".\stlink.cfg" -c "transport select hla_swd" -f ".\stm32f4x.cfg" 禁止tcl_port與telnet_port