Referring to the information of the great god, Taobao bought a board and jlink
several concepts
jlink/ openJtag, hardware implementing the debug protocol
openocd, this and the above hardware together make up the debugger
There is an emotional awareness.
specific process
The libusb version needs to use 1, not 2
sudo apt-get install libusb-1.0-0-dev
compile
./configure --enable-jlink --prefix=/home/mmc/dev/arm/openocd; make; make install
Copy the configuration file
Find jlink.cfg under $OPENOCD/share/openocd/scripts/ interface / Find stm32f1x.cfg under $OPENOCD /share/openocd/scripts/target/
Enable debugger server
sudo sudo
./openocd -f ./jlink.cfg -f ./stm32f1x.cfg