Skip to main content

ESP-IDF Guide

tip

This guide uses the WiFi LoRa 32 V4 development board as a reference example.

1.Install Visual Studio Code

Download and install Visual Studio Code from the official website. After installation, launch VS Code.

2. Install the ESP-IDF Extension

1.Open the Extensions view by pressing Ctrl + Shift + X. In the search bar, enter ESP-IDF and install the Espressif ESP-IDF extension.

2.After installation, the following functions are provided.

3.Install the ESP-IDF Toolchain.

  • Select download server: selected GitHub (Check show all ESP idf tags)
  • Select ESP-IDF version: Suggest prioritizing stable versions
  • Enter ESP-IDF container directory: Select the installation directory
  • Enter ESP-IDF Tools directory: It should be located within the ESP-IDF installation directory

4.Click Install to start downloading and installing the ESP-IDF tools. Wait until the installation process completes successfully.

5.Using E:\ESP-IDF\v5.5.1\esp-idf as an example installation path, you can find the corresponding component directories and example projects under this directory.


3. Routine usage

1.Connect the device to the computer.

2.Open the folderE:\ESP-IDF\v5.5.1\esp-idf\examples\get-started\hello_world directly in Visual Studio Code.

  • Select the serial port that corresponds to the connected device
  • choose esp32s3 as the target chip
warning

If environment variables related to Anaconda or other Python virtual environments are present, they may conflict with the Python environment required by ESP-IDF, potentially causing incorrect toolchain or target detection. It is recommended to remove these environment variables before installation. If removal is not feasible, manual installation is advised.

3.After the configuration is complete, click Flash to build and upload the firmware to the device.

For additional operations, please refer to the official documentation.