1.5 KiB
Step 1: Install Prerequisites
ESP-IDF uses the version of Python installed by default on macOS.
- Install CMake & Ninja build:
brew install cmake ninja dfu-util
brew install python3
Step 2: Get ESP-IDF
To build applications for the ESP32, you need the software libraries provided by Espressif in ESP-IDF repository.
To get ESP-IDF, navigate to your installation directory and clone the repository with git clone, following instructions below specific to your operating system.
Open Terminal, and run the following commands:
mkdir -p ~/esp
cd ~/esp
git clone -b v6.0-beta1 --recursive https://github.com/espressif/esp-idf.git
Step 3. 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, for projects supporting ESP32.
cd ~/esp/esp-idf
./install.sh esp32
The above commands install tools for ESP32 only. If you intend to develop projects for more chip targets then you should list all of them and run for example:
cd ~/esp/esp-idf
./install.sh esp32,esp32s2
In order to install tools for all supported targets please run the following command:
cd ~/esp/esp-idf
./install.sh all