vscode嵌入式配置环境setting.json配置
时间: 2023-12-19 18:03:56 浏览: 25
要在VS Code中配置嵌入式开发环境,可以按照以下步骤进行设置:
1. 打开VS Code,进入“文件”菜单,选择“首选项” -> “设置”。
2. 在“设置”页面中,点击右上角的“打开设置(JSON)”按钮,打开“setting.json”文件。
3. 在“setting.json”文件中,添加以下配置信息:
```
"cortex-debug.JLinkGDBServerPath": "JLinkGDBServerCL.exe",
"cortex-debug.armToolchainPath": "C:/Program Files (x86)/GNU Tools ARM Embedded/9 2019-q4-major/bin",
"cortex-debug.openocdPath": "C:/Program Files/GNU ARM Eclipse/OpenOCD/0.10.0-201601101000-dev/openocd.exe",
```
其中,“JLinkGDBServerPath”是J-Link GDB服务器的路径,“armToolchainPath”是ARM嵌入式工具链的路径,“openocdPath”是OpenOCD的路径。请根据你自己的实际情况进行修改。
4. 保存“setting.json”文件,并退出VS Code。
5. 重新打开VS Code,你现在应该已经可以使用VS Code进行嵌入式开发了!