This blog is only for users who support access to
Github.
Software that needs to be installed in advance
- Git Bash
- Python environment,To install version of Python3.8 , When you install,Please check the “Add to PATH” box.
- Use the “Quick Setup Tool” of the online version to install the compilation environment for the “ESP-IDF master”. Please refer to the description of the “ESP-IDF Tools Installer”.
-
Open "
Git Bash", go to the “E” disk , and create an empty foldercd E: mkdir esp-mdf-master -
Go to the “
esp-mdf-master” directory and start cloning esp-mdfcd esp-mdf-master git clone https://github.com/espressif/esp-mdf.git -
Go to the "
esp-mdf-master/esp-mdf" directory and start cloning esp-mdf sub-repositorycd esp-mdf-master/esp-mdf git submodule update --init --recursive -
Go to the “
esp-mdf-master/esp-mdf/esp-idf” directory and start cloning esp-idf sub-repositorycd esp-mdf-master/esp-mdf/esp-idf git submodule update --init --recursive -
Open the “
ESP-IDF 4.4 CMD” compilation window.
-
In the "
ESP-IDF 4.4 CMD" compilation environment, go to the "esp-mdf-master/esp-mdf/esp-idf" directory and set environment variables for "esp-idf"E: cd esp-mdf-master\esp-mdf\esp-idf export IDF_PATH=E:\esp-mdf-master\esp-mdf\esp-idf -
On the "
esp-mdf-master/esp-mdf/esp-idf" directory and run the follows commandinstall.bat export.bat -
On the "
esp-mdf-master/esp-mdf"directory and set environment variables for "esp-mdf"cd .. set MDF_PATH=E:\esp-mdf-master\esp-mdf -
Then start testing the examples under the "
ESP-MDF", for example:cd examples\function_demo\mwifi\router idf.py menuconfig idf.py build idf.py -p COM31 flash monitor

本文指导如何在Git Bash中安装Python 3.8并设置ESP-IDF环境,包括使用ESP-IDF Tools Installer、子模块克隆和配置环境变量。重点在于ESP-MDF和ESP-IDF项目的编译与测试步骤。
2092

被折叠的 条评论
为什么被折叠?



