这个世界,也在回应我吗?
导航

有在认真生活的人,都是好人! --by 七濑胡桃

linux配置espidf环境

作者:laffey时间:2025-07-31 18:47:58

1. 获取esp-idf

首先,使用git获取espidf仓库。

`git clone --recursive https://github.com/espressif/esp-idf.git `

要使用`--recursive` 获取子模块。子模块是另外的仓库,直接使用`git clone`并不能获取。

2. 执行`install.sh`

由于网络原因,需要在国内的服务器下载。

`export IDF_GITHUB_ASSETS="dl.espressif.com/github_assets"`

`pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple`

`./install.sh`

3. 配置环境变量 执行

`source ./export.sh`