2.点击下图的小锤子,或者project中的build all,编译工程
3.点下图的那个虫子在里面选Debug Configurations...
4、打开后双击GDB hardware debugging会出现下面的界面,将相关参数填写好
5、点击下图的select other,选择 using standard gdb hardware debugging launcher
6、点击debugger进入如下界面,并配置好
7、点startup进入下一界面,如下3个图,其中initialization commands 填入的是
monitor speed 30
monitor endian little
monitor flash device = STM32F103RB
monitor reset
monitor speed auto
其它的按图配置好就行了