根据乐鑫的方法,使用gitee可以快速拉取编译工具和SDK,原文在这里如何使用 Gitee 快速搭建 ESP-IDF 开发环境(Windows 版本)_乐鑫科技 Espressif的博客-CSDN博客_怎么使用gitee
注意点:
1. 安装python: 点击下载: python3.7.9,安装时注意点击添加环境变量,也可以手动添加,主要添加这两个path
C:\Users\YU Qiang\AppData\Local\Programs\Python\Python37
C:\Users\YU Qiang\AppData\Local\Programs\Python\Python37\Scripts
按照教程拉取代码速度很快,执行install.sh的时候出现如下问题:
$EGT_PATH/install.sh
Installing ESP-IDF tools
ERROR: MSys/Mingw is not supported. Please follow the getting started guide of the documentation to set up a supported environment
之后使用突发奇想使用官方在线安装工具,我使用的是这个版本,
esp-idf-tools-setup-online-2.13.exe,
另外,在线安装之前替换git中的github下载源url。
使用git config --global url."https://hub.fastgit.org".insteadOf https://github.com进行全局的替换,
替换url配置,之后打开在线安装器,前面几步差别不大,根据自己需要的进行配置就可以,当进行到选择组件这一步的时候,注意勾选 “使用Espressif”下载镜像代替Github” 选项
然后就发现安装速度飞快,很顺利就安装完成了。
之后编译的时候又出现以下问题,使用idf.py --no-ccache build解决
xtensa-esp32s3-elf-gcc.exe: error: [0122/204242:ERROR:browser_context_impl.cc(229)]: Invalid argument
xtensa-esp32s3-elf-gcc.exe: error: The: No such file or directory
xtensa-esp32s3-elf-gcc.exe: error: cache_path: No such file or directory
xtensa-esp32s3-elf-gcc.exe: error: directory: No such file or directory
xtensa-esp32s3-elf-gcc.exe: error: could: No such file or directory
xtensa-esp32s3-elf-gcc.exe: error: not: No such file or directory
xtensa-esp32s3-elf-gcc.exe: error: be: No such file or directory
xtensa-esp32s3-elf-gcc.exe: error: created:: Invalid argument
xtensa-esp32s3-elf-gcc.exe: error: C:UsersYU: No such file or directory
xtensa-esp32s3-elf-gcc.exe: error: Qiang\AppData\Roaming/.ccache/tmp/cmd_args.xgX9th: No such file or directory
xtensa-esp32s3-elf-gcc.exe: fatal error: no input files