MacOS+VSCODE 安装esp-adf详细流程

  1. 安装python3,省略
  2. vscode安装ESP-IDF插件,选择v5.2.5 版本,电脑需要能够访问github,esp-idf安装后的默认目录是:
shell 复制代码
/Users/***/esp/v5.2.5/esp-idf

# 启动***为省略名称
  1. 在/Users/***/esp/ 目录下使用git clone 下载 esp-adf
shell 复制代码
# 国内用户推荐 Gitee 镜像
git clone https://gitee.com/EspressifSystems/esp-adf.git
  1. esp-idf 子模块下载
shell 复制代码
# 手动下载子模块(解决 GitHub 访问问题):
​# 安装esp-adf-libs:
git clone https://gitee.com/du-jianmin/esp-adf-libs.git 
# → 放入 esp-adf/components/
​# 安装esp-sr:
git clone https://gitee.com/du-jianmin/esp-sr.git 
# → 放入 esp-adf/components/
​注意​:无需处理 esp-idf 子模块(已独立安装)
  1. 创建esp-idf 软链接指向esp-idf,重要.
    这里吐槽一下esp32官方的环境搭建,很麻烦,因为在esp-adf目录下有esp-idf子目录(空目录),因为esp-adf依赖esp-idf,而前面我们已经安装了esp-idf,所以我们不需要再次clone esp-idf,而是通过软链接的方式指向真正的esp-idf即可,这一步非常重要,否则在执行export.sh 的时候会报错。
shell 复制代码
# 7.1 删除esp-adf/esp-idf
rm -rf esp-idf
# 7.2 创建esp-idf 软链接
ln -s /User/***/esp/v5.2.5/esp-idf /User/***/esp/esp-adf/esp-idf
  1. 创建 ADF_PATH 变量
shell 复制代码
cd ~/esp/esp-adf
. /User/***/esp/esp-adf/export.sh
  1. 配置vscode路径,重要
  • 10.1 vscode 选择esp-idf插件,set按钮
  • 10.2 选择settings
  • 10.3 设置esp-idf、esp-adf的路径,重要
相关推荐
mancy_1212124 小时前
复古C语言代码复活!——以121+hello.c为例摘要
c语言·vscode·gitee·visual studio·新人首发·turbo c
qq_397562318 小时前
使用vscode , 开发keil单片机工程 . (为了使用ai助手)
ide·vscode·编辑器
于慨8 小时前
nuxt4项目安装依赖报错
vscode
2601_949146538 小时前
APP语音通知接口集成实战:移动端应用接入语音提醒API的开发手册
macos·objective-c·cocoa
测试开发Kevin9 小时前
如何解决vscode使用远程资源管理常见问题:远程主机可能不符合 glibc 和 libstdc++ VS Code 服务器的先决条件
vscode
小鹿软件办公10 小时前
Apple 发布 macOS 11、watchOS 10 和 watchOS 9 更新
macos·objective-c·cocoa
FansyMeng1 天前
VSCode配置anaconda
vscode·python
Anarkh_Lee1 天前
在VSCode中使用MCP实现智能问数
数据库·ide·vscode·ai·编辑器·ai编程·数据库开发
一心赚狗粮的宇叔1 天前
VScode常用扩展包&Node.js安装及npm包安装
vscode·npm·node.js·web
紫竹苑主1 天前
VS Cose + PlatformIO +ESP32-S3 + ESPIDF开发环境安装卡壳持续等待问题解决
vscode·python·嵌入式硬件·物联网·硬件架构