User Manual

3 Get Started
3.4.3 Configure
Navigate to your ‘hello_world’ directory from Step 3.4.1. Start a Project, set ESP32-S2 chip as the target and run
the project configuration utility ‘menuconfig’.
1 cd ~/esp/hello_world
2 idf.py set-target esp32s2
3 idf.py menuconfig
Setting the target with ‘idf.py set-target ESP32-S2’ should be done once, after opening a new project. If the
project contains some existing builds and configuration, they will be cleared and initialized. The target may be
saved in environment variable to skip this step at all. See
Selecting the Target for additional information.
If the previous steps have been done correctly, the following menu appears:
Figure 3: Project Configuration - Home Window
You are using this menu to set up project specific variables, e.g. Wi-Fi network name and password, the
processor speed, etc. Setting up the project with menuconfig may be skipped for “hello_word”. This example will
run with default configuration
The colors of the menu could be different in your terminal. You can change the appearance with the option
‘-฀-style’฀. Please run ‘idf.py menuconfig -฀-help’฀for further information.
3.4.4 Build the Project
Build the project by running:
1 idf.py build
This command will compile the application and all ESP-IDF components, then it will generate the bootloader,
partition table, and application binaries.
1 $ idf.py build
2 Running cmake in directory /path/to/hello_world/build
3 Executing ”cmake -G Ninja --warn-uninitialized /path/to/hello_world”...
Espressif Systems 10 ESP32-S2-MINI-2 User Manual v0.5