Set Up Tools; Set Up Environment Variables; Create Your First Project; Start A Project - Espressif ESP32-­MINI-­1 User Manual

Table of Contents

Advertisement

2 Get Started on ESP32-MINI-1
ESP-IDF will be downloaded into
version to use in a given situation.

2.3.3 Set up Tools

Aside from the ESP-IDF, you also need to install the tools used by ESP-IDF, such as the compiler, debugger,
Python packages, etc. ESP-IDF provides a script named 'install.sh' to help set up the tools in one go.
cd ~/esp/esp−idf
./ install .sh

2.3.4 Set up Environment Variables

The installed tools are not yet added to the PATH environment variable. To make the tools usable from the
command line, some environment variables must be set. ESP-IDF provides another script 'export.sh' which does
that. In the terminal where you are going to use ESP-IDF, run:
. $HOME/esp/esp−idf/export.sh
Now everything is ready, you can build your first project on ESP32-MINI-1 module.

2.4 Create Your First Project

2.4.1 Start a Project

Now you are ready to prepare your application for ESP32-MINI-1 module. You can start with
get-started/hello_world
project from
Copy get-started/hello_world to
cd ~/esp
cp −r $IDF_PATH/examples/get−started/hello_world .
There is a range of
example projects
way as presented above and run it. It is also possible to build examples in-place, without copying them
first.

2.4.2 Connect Your Device

Now connect your ESP32-MINI-1 module to the computer and check under what serial port the module is
visible. Serial ports in Linux start with '/dev/tty' in their names. Run the command below two times, first with the
board unplugged, then with plugged in. The port which appears the second time is the one you need:
ls /dev/tty*
Note:
Keep the port name handy as you will need it in the next steps.
Espressif Systems
~
/esp/esp-idf. Consult
ESP-IDF Versions
examples directory
in ESP-IDF.
~
/esp directory:
in the examples directory in ESP-IDF. You can copy any project in the same
9
for information about which ESP-IDF
ESP32-MINI-1 User Manual (Preliminary v0.1)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-­MINI-­1 and is the answer not in the manual?

Questions and answers

Table of Contents