Files
notes/ESP32/Setting up ESP32.md
2025-11-15 00:47:08 -05:00

49 lines
1.5 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[source](https://docs.espressif.com/projects/esp-idf/en/v6.0-beta1/esp32/get-started/linux-macos-setup.html#get-started-prerequisites)
## Step 1: Install Prerequisites
ESP-IDF uses the version of Python installed by default on macOS.
- Install CMake & Ninja build:
```sh
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](https://github.com/espressif/esp-idf).
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:
```sh
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](https://docs.espressif.com/projects/esp-idf/en/v6.0-beta1/esp32/get-started/linux-macos-setup.html#step-3-set-up-the-tools "Permalink to this heading")
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.
```sh
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:
```sh
cd ~/esp/esp-idf
./install.sh esp32,esp32s2
```
In order to install tools for all supported targets please run the following command:
```sh
cd ~/esp/esp-idf
./install.sh all
```