一、下载esp at源代码
二、获取esp idf源代码
我直接放在了at源代码目录里面
git clone -b release/v4.3 --recursive https://github.com/espressif/esp-idf.git
三、设置工具
安装 ESP-IDF 使用的各种工具,比如编译器、调试器、Python 包等
进入esp-idf目录下
cd %userprofile%\esp\esp-idf
install.bat esp32
通过一次性指定多个目标,可为多个目标芯片同时安装工具,如运行
cd %userprofile%\esp\esp-idf
install.bat esp32,esp32c3,esp32s3
四、设置环境变量
刚刚安装的工具尚未添加至 PATH 环境变量,无法通过“命令窗口”使用这些工具。因此,必须设置一些环境变量,这可以通过 ESP-IDF 提供的另一个脚本完成。
%userprofile%\esp\esp-idf\export.bat
ref: