Install ESP-IDF#
idf.py --version to confirm the active version before continuing.Use the ESP-IDF Installation Manager (EIM) to install and manage ESP-IDF. EIM is available as a command-line tool and a desktop application from the EIM download page.
Graphical setup with VS Code#
If you are not familiar with command-line tools, use the official ESP-IDF extension for Visual Studio Code:
- Install Visual Studio Code.
- Open Extensions from the Activity Bar.
- Search for ESP-IDF, select the extension published by Espressif Systems, and click Install.
- Open the Command Palette with View → Command Palette.
- Run
ESP-IDF: Open ESP-IDF Installation Manager. - Follow the graphical installer and select ESP-IDF v6.1.
- When installation finishes, let the extension use the newly installed ESP-IDF tools.
Commands written as ESP-IDF: ... in this workshop are VS Code commands. Open the Command Palette, type the command name, and select it; you do not need to type them in a terminal.
To inspect the configured environment, run ESP-IDF: Doctor Command from the Command Palette and confirm that it reports ESP-IDF v6.1. After completing this graphical setup, skip the terminal installation commands below and continue to the gesture recognition example.
Command-line setup#
You can also install EIM from a terminal:
CLI — install with Homebrew:
brew tap espressif/eim
brew install eimGUI — install the desktop application with Homebrew:
brew tap espressif/eim
brew install --cask eim-guiCLI — install through the Espressif APT repository:
echo "deb [trusted=yes] https://dl.espressif.com/dl/eim/apt/ stable main" | sudo tee /etc/apt/sources.list.d/espressif.list
sudo apt update
sudo apt install eim-cliGUI — install the full package, which includes the CLI:
echo "deb [trusted=yes] https://dl.espressif.com/dl/eim/apt/ stable main" | sudo tee /etc/apt/sources.list.d/espressif.list
sudo apt update
sudo apt install eimCLI — open Windows Terminal with a PowerShell or Command Prompt profile and run:
winget install Espressif.EIM-CLIGUI — download the Windows installer and run the setup wizard:
Install the ESP-IDF version used in this workshop:
eim install v6.1For a guided setup, run:
eim wizardFor a detailed walkthrough, see the ESP-IDF Preliminary Setup Workshop.
Check the installed versions:
eim listIf more than one version is installed, select ESP-IDF v6.1:
eim select v6.1Run the activation command printed by EIM. For the default installation path, use:
source ~/.espressif/tools/activate_idf_v6.1.shsource ~/.espressif/tools/activate_idf_v6.1.shPowerShell:
. $HOME\.espressif\tools\activate_idf_v6.1.ps1Command Prompt:
%USERPROFILE%\.espressif\tools\activate_idf_v6.1.batVerify the active version:
idf.py --versionThe command should report ESP-IDF v6.1.
