程序员的资源宝库

网站首页 > gitee 正文

ESP-IDF环境构建

sanyeah 2024-04-20 00:17:41 gitee 9 ℃ 0 评论

要点:

  ①安装git,安装python3.7以上,

  ②从gitee clone esp32-idf, 下载地址: git clone https://gitee.com/EspressifSystems/esp-idf.git  , 注意不要使用github,无法下载的。下载完后,实际上esp-idf的子模块并没有下载下来,下一步要更新所有子模块。

  ③从gitee clone esp-gitee-tools , 下载地址:https://gitee.com/EspressifSystems/esp-gitee-tools.git

  ④打开cmd.exe,依次运行以下命令: 

    a, 切换到国内源,提高下载速度: pip config set global.index-url http://mirrors.aliyun.com/pypi/simple , pip config set global.trusted-host mirrors.cloud.tencent.com , 如果下一步的安装速度不错,这步可以不做。

    b,   进入到 esp-gitee-tools目录, 执行: export EGT_PATH=$(pwd) ,即设置一个 EGT_PATH 变量方便使用,也可以不用设置,下面运行的时候全部用绝对路径代替也可以。

    c,进入到 esp32-idf目录,执行:$(EGT_PATH)\install.sh 开始安装esp-idf.

    d,进入到 esp32-idf目录,执行更新子模块动作: $(EGT_PATH)\submodule-update.sh,这里面会下载更新所有esp32-idf的子模块。

  ⑤进入到 esp32-idf目录,执行 export.bat 设置环境变量

  ⑥测试hello_world,执行: xcopy /e /i %IDF_PATH%\examples\get-started\hello_world   ..\esp-proj\hello_world

 

遇到问题:The following Python requirements are not satisfied , 解决办法: 运行: python -m pip install -r $IDF_PATH/requirements.txt 

 

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表