Vscode 配置IAR编译调试程序
配置方法
https://blog.csdn.net/lczdk/article/details/114639094
iar.json
{
"version": 1,
"path": "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 8.0\\",
"project": "E:\\work\\vivado_test\\FMQL_T001\\SDK\\design_1_platform\\Lwip\\Lwip.ewp",
"config": "Debug",
"parallel" : true
}
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "JLink GDB Debug",
"type": "cppdbg",
"request": "launch",
"program": "E:/work/vivado_test/FMQL_T001/SDK/design_1_platform/MemoryTest/Debug/Exe/MemoryTest.out",
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "${config:iarvsc.gdb}",
"debugServerPath": "${config:iarvsc.gdbServer}",
// "debugServerArgs": "-if swd -singlerun -strict -endian little -speed auto -port 2331 -device MemoryTest -vd -strict -halt",
"serverStarted": "Connected\\ to\\ target",
"serverLaunchTimeout": 5000,
"filterStderr": false,
"filterStdout": true,
"setupCommands": [
{
"text": "target remote localhost:2331"
},{
"text": "monitor flash breakpoints = 1"
},{
"text": "monitor flash download = 1"
},{
"text": "monitor reset"
},{
"text": "load E:/work/vivado_test/FMQL_T001/SDK/design_1_platform/MemoryTest/Debug/Exe/MemoryTest.out"
},{
"text": "monitor reset"
}
]
}
],
}
本文来自博客园踩坑狭,作者:韩若明瞳,转载请注明原文链接:https://www.cnblogs.com/han-guang-xue/p/15673694.html