ESP32IDF development environment setup

Installation link: Standard Setup of Toolchain for Windows - ESP32-S3 - — ESP-IDF Programming Guide v5.3.2 documentation

ESP-IDF requires the installation of some prerequisite tools to build firmware around ESP32-S3, including Python, Git, cross compiler, CMake and Ninja compilation tools.

1. Installation prerequisites

2. ESP-IDF Tool Installer

The easiest way to install the ESP-IDF essential tools is to download an ESP-IDF Tool Installer.

Online download link: dl.espressif.com.cn/dl/esp-idf/?idf=4.4

Drag to the 5.1.2 version below, or select other versions, but some functions may need to be replaced with the corresponding version of the function.

image-20250113104454349

image-20250122101521012

After installing the esp-ide tool, install a git.

Link: Git for Windows

image-20250113105242698

After downloading, open the installation,

image-20250122101422685

Select the installation path,

image-20250113105624872

Always next,

image-20250113105503458

Go to the back and install. After the installation is successful, a folder like this will appear on the C drive (it may also be on other drive letters)

image-20250122095732801

This means that the installation is successful.

3. Start the ESP-IDF environment

At the end of the installation, if Run ESP-IDF PowerShell Environment or Run ESP-IDF Command Prompt (cmd.exe) is checked, the installer will start ESP-IDF in the selected prompt window.

Double-click to open the esp-ide software that appears on the desktop.

image-20250113110007013

image-20250113110032586

The path to our esp32 environment is at the bottom: C:\Espressif\frameworks\esp-idf-v5.1.2

4. Start creating a project

Now, you are ready to develop ESP32-S3 applications. You can start from the get-started/hello_world project in the examples directory in ESP-IDF.

Copy the get-started/hello_world project to the local ~/esp directory:

image-20250113115014993

You can see that it has been created,

image-20250113115114576

Configure the new project,

image-20250113115342361

After opening a new project, you should first use idf.py set-target esp32s3 to set the "target" chip. Note that this operation will clear and initialize the previous compilation and configuration of the project (if any). You can also directly configure the "target" as an environment variable (you can skip this step in this case).

Setting successful:

image-20250113115631260

Compile the project,

image-20250113120359747

If everything goes well, a .bin file will be generated after the compilation is complete.

It will be stored in the build folder.

image-20250113120428187

Connect the device to the computer, and you can directly use the COM port to burn. Open the computer's device manager to check what port is recognized.

image-20250122101721728

Enter the following command in the terminal to write the program in.

image-20250113112825329

If the above log appears, the download is successful.