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的路径,重要
相关推荐
FairGuard手游加固13 分钟前
iOS 游戏加固技术解析:代码混淆、资源加密、内存保护与重签名检测
安全·游戏·macos·unity·ios·objective-c
思盛iOS签名上架39 分钟前
iOS企业签名原理是什么?
macos·ios·cocoa
Wang's Blog3 小时前
Vibe Coding一人即团队系列23: 基于Stitch/Sketch的UI原型1:1复刻工作流
人工智能·macos·ui·sketch
salestina3 小时前
vscode迁移扩展目录
ide·vscode·编辑器
sunoo-2291 天前
【Linux 系统编程】学习第七天:线程属性 | 互斥锁 | 死锁 | 信号量 核心知识点 + 踩坑实战
linux·c语言·笔记·vscode·学习
空の鱼1 天前
Mac 上 Node 版本管理(brew + nvm 共存方案)
macos·node.js
铁手飞鹰1 天前
VSCode Python .embed 嵌入式环境黄色波浪线问题
ide·vscode·python
吴可可1231 天前
VSCode助力机械臂轨迹开发
vscode
意法半导体STM321 天前
【官方原创】LAT1695转换STM32CubeIDE工程到STM32CubeIDE for Visual Studio Code
vscode·stm32·单片机·嵌入式硬件
Molesidy1 天前
【Embedded Development】基于VSCode+IAR插件的IAR工程开发环境的搭建
ide·vscode·编辑器