This blog will be divided into two parts:
- Configure ESP32-S3 software development environment on Ubuntu
- Configure ESP32-S3 software development environment on Windows
1 Configure ESP32-S3 software development environment on Ubuntu
We recommend that you use Ubuntu environment to set up the ESP-IDF compilation environment. Compiling on Ubuntu is faster. The steps for setting up an environment on Ubuntu18.04 are as follows :
Step 1: Install Prerequisites
- Install software packages for compiling ESP-IDF
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
- Install Python 3.8
sudo apt-get install python3.8-venv python3.8-dev
- Select the Python3 environment
sudo update-alternatives --config python
Note : Install the following Python packages using pip
python -m pip install pyyaml xlrd
python -m pip --version
- Install the curses
sudo apt-get install libncurses5-dev
Step 2: Get ESP-IDF
mkdir -p ~/esp
cd ~/esp
git clone -b release/v4.4 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
git submodule update --init --recursive
git pull
Step 3: Set up the tools
cd ~/esp/esp-idf
./install.sh
Step 4: Set up the environment variables
cd esp-idf
pwd
export IDF_PATH=$(pwd)
. ./export.sh
Step 5:Start a Project
cd ~/esp-idf/examples/get-started/hello_world
idf.py set-target esp32s3
idf.py menuconfig
idf.py build
idf.py flash monitor
2 Configure ESP32-S3 software development environment on Windows
If you are using a Windows environment, we recommend that you use the Quick Setup Tool to install the ESP-IDF build environment with one click. Also, when selecting the ESP-IDF version, please select the latest release/v4.3
version.
Please use this: