vscode嵌入式配置环境setting.json配置
时间: 2023-12-19 14:03:56 浏览: 34
要在 VS Code 中配置嵌入式开发环境,需要修改 `setting.json` 文件。以下是一些常见的配置:
1. 设置编译器路径:
```json
"cortex-debug.armToolchainPath": "/usr/bin/arm-none-eabi-gcc"
```
2. 设置串口:
```json
"cortex-debug.openocdPath": "/usr/local/bin/openocd",
"cortex-debug.targetInterface": "swd",
"cortex-debug.targetTransport": "hla_swd",
"cortex-debug.gdbPath": "/usr/bin/arm-none-eabi-gdb",
"cortex-debug.serialPort": "/dev/tty.usbserial-A100001J"
```
3. 设置调试器:
```json
"cortex-debug.interface": "swd",
"cortex-debug.svdFile": "/path/to/svd/file"
```
注意,具体的配置可能因为不同的嵌入式开发板而有所不同。
相关推荐
![](https://img-home.csdnimg.cn/images/20210720083646.png)
![dll](https://img-home.csdnimg.cn/images/20210720083646.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![](https://img-home.csdnimg.cn/images/20210720083646.png)
![](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)