3.
Getting Started with ESP32-
WATG-32D
3.1. ESP-IDF
The Espressif IoT Development Framework (ESP-IDF for short) is a framework for
developing applications based on the Espressif ESP32. Users can develop
applications with ESP32 in Windows/Linux/MacOS based on ESP-IDF.
3.2. Set up the 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.
3.2.1. Standard Setup of Toolchain for Windows
The quickest way is to download the toolchain and MSYS2 zip from
:
https://dl.espressif.com/dl/
esp32_win32_msys2_environment_and_toolchain-20181001.zip
Checking out
Run
C:\msys32\mingw32.exe
to open an MSYS2 terminal. Run:
mkdir -p ~/esp
Input
cd ~/esp
to enter the new directory.
Updating the Environment
When IDF is updated, sometimes new toolchains are required or new requirements are
added to the Windows MSYS2 environment. To move any data from an old version of
the precompiled environment to a new one:
Take the old MSYS2 environment (ie C:
\msys32
) and move/rename it to a different
directory (ie
C:\msys32_old
).
Download the new precompiled environment using the steps above.
Unzip the new MSYS2 environment to
C:\msys32
(or another location).
Find the old
C:\msys32_old\home
directory and move this into
C:\msys32
.
You can now delete the
C:\msys32_old
directory if you no longer need it.
You can have independent different MSYS2 environments on your system, as long as
they are in different directories.
3.2.2. Standard Setup of Toolchain for Linux
Install Prerequisites
CentOS 7
:
sudo yum install gcc git wget make ncurses-devel flex bison gperf python pyserial
python-pyelftools
Ubuntu
和
Debian
: