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
其它的按圖配置好就行了