1.已安装IAR的情况下安装以下插件
ARM 用于ARM汇编语言高亮
Cortex Debug 用于ARM Cortex-M的调试我使用的stlink所以配置了OpenOCD使用stlinkV2进行调试,可以根据个人需要使用其他连接工具配置参考openocd安装
IAR Embedded Workbench 用于调用IAR编译
2.工程文件夹下创建.vscode文件夹并新建iar.json及settings.json
iar.json:
{
"version": 1,
"path": "F:\\soft_install\\IAR\\",
"project": "E:\\cypress\\1026\\RTK330LA\\iar\\rtk_ins_m7_0\\rtk_ins.ewp",
"config": "Debug"
}
settings.json
{
"iar.enabled":true
}
3.添加工程中需要的系统变量
IarBuild.exe test.ewp -build Debug -log all
IarBuild.exe test.ewp --download_only