3.3. Get ESP-IDF
Once you have the toolchain (that contains programs to compile and build the application)
installed, you also need ESP32 specific API / libraries. They are provided by Espressif in
ESP-IDF
IDF, and clone it using git clone command:
git clone --recursive -b feature/esp32s2beta https://github.com/espressif/esp-idf.git
ESP-IDF will be downloaded into ~/esp/esp-idf.
Note:
Do not miss the --recursive option. If you have already cloned ESP-IDF without this option, run another
command to get all the submodules:
cd ~/esp/esp-idf
git submodule update --init
3.4. Add IDF_PATH to User Profile
To preserve setting of IDF_PATH environment variable between system restarts, add it to
the user profile, following instructions below.
3.4.1. Windows
Search for "Edit Environment Variables" on Windows 10.
Click New... and add a new system variable IDF_PATH. The configuration should include an
ESP-IDF directory, such as C:\Users\user-name\esp\esp-idf.
Add ;%IDF_PATH%\tools to the Path variable to run idf.py and other tools.
3.4.2. Linux and MacOS
Add the following to ~/.profile:
export IDF_PATH=~/esp/esp-idf
export PATH="$IDF_PATH/tools:$PATH"
Run the following to check IDF_PATH:
printenv IDF_PATH
Run the following to check if idf.py is included in PAT:
which idf.py
It will print a path similar to ${IDF_PATH}/tools/idf.py.
You can also enter the following if you do not want to modify IDF_PATH or PATH:
export IDF_PATH=~/esp/esp-idf
export PATH="$IDF_PATH/tools:$PATH"
Espressif Systems
repository. To get it, open terminal, navigate to the directory you want to put ESP-
3. Getting Started with ESP32-S2-MINI-1 &
11 22
/
ESP32-S2-MINI-1U
Sep. 2020
Need help?
Do you have a question about the ESP32-S2-MINI-1 and is the answer not in the manual?
Questions and answers