关于EIDE中debug的使用问题
一.File not found "executable": "C:/Users/fade/Desktop/vscode_test/vscode.cfg/bin/executable.elf"故障说明。
你生成的可执行debug映像文件路输出路径不对,改成实际输出的,一般在编译完成后的输出文件中。如图所示:
二.{}lauch.json文件说明
{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"cwd": "${workspaceRoot}","executable": "./build/Target 1/Template.elf", //debug映像文件,一般和烧录文件一起"name": "Debug with OpenOCD","request": "launch","type": "cortex-debug", "servertype": "openocd", //烧录方式"configFiles": [ //这个参数必须明确指出"interface/stlink-dap.cfg", //调试接口,烧录配置中找"target/stm32f1x.cfg"], //芯片型号,烧录配置中找"searchDir": [],"runToEntryPoint": "main", "showDevDebugOutput": "none"},{"name": "Cortex Debug","cwd": "${workspaceFolder}","executable": "./bin/executable.elf","request": "launch","type": "cortex-debug","runToEntryPoint": "main","servertype": "jlink"}]
}