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的路径,重要
相关推荐
一个人旅程~1 天前
关于imac27inch因改短用户名导致混合硬盘和系统崩溃的问题分析与故障解决
经验分享·笔记·macos·新浪微博
volunteer10241 天前
从仅剩 6 GB 到狂腾 70 GB:我的 256G Mac mini 深度清理与内存排查实战
macos
todoitbo2 天前
我在 Mac 上用 Docker 部署 Nexent:从拉取镜像到接入模型
macos·docker·大模型·ai智能体·nexent·快速入门与环境准备
独隅2 天前
WebStorm macOS 安装部署与高效调优实战指南
ide·macos·webstorm
fthux3 天前
Tick Rest,一个休息提醒工具的自我修养
macos·开源·swift
FPGA小迷弟4 天前
FPGA 与千兆以太网:各类物理接口的形式、区别、使用方法与应用场景详解
tcp/ip·macos·fpga开发·udp·fpga
2501_916008895 天前
iOS App 图标、启动屏和多语言搭配 方法,上架前使用KXBuild一次做好 App 图标
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
2501_915918415 天前
iOS 推送通知怎么实现,从 APNs p8 密钥到 iOS 真机收到第一条推送
vscode·ios·objective-c·个人开发·swift·敏捷流程
周小董6 天前
[1379]mac安装nvm
macos
sunshine22 girl6 天前
copilot vscode 使用技巧
人工智能·vscode·编辑器