这是我实际操作的,网上搜索的话会有很多,遇到的问题许多都没有强调:
参考文档:https://docs.espressif.com/projects/esp-idf/zh_CN/latest/get-started/index.html#get-started-setup-toolchain
操作步骤我就不写了,参考官网的就好,下面介绍我安装遇到的几个问题。
1.clone esp-idf
因为我的esp-idf,可以理解为SDK是从其他地方copy过来的所以编译总是缺少文件。所以你在clone的时候一定要
git clone --recursive https://github.com/espressif/esp-idf.git
。--recursive
可以将所有的模块都clone下来。如果没有使
用的话,打开mingw32.exe cd
到esp-idf
目录。运行git submodule update --init
2.安装python2.7
闲官网下载慢的可以到:
https://pc.qq.com/category/c13.html