關鍵是寫makefile來管理工程,用openocd和stlink來調試,當然jlink也行。在中寫好gdb的命令,我只用到了‘file’和‘target remote localhost:3333’。調試時,先開openocd,再執行vscode的debug,就可以連上板子了。