This guide explains how to install and set up the Espressif IoT Development Framework (ESP-IDF) for ESP32-WROOM and ESP32-S3 modules.
- Supported OS: Windows, macOS, or Linux
- Python 3.7 or newer
- Download the ESP-IDF Tools Installer.
- Run the installer and follow the prompts to install ESP-IDF and required tools.
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
git checkout v5.1 # Or your preferred version
./install.sh # For Linux/macOS
install.bat # For Windows- On Windows, use the "ESP-IDF Command Prompt" from the Start menu.
- On Linux/macOS, run:
. ./export.shidf.py create-project my_project
cd my_project
idf.py set-target esp32 # For ESP32-WROOM
idf.py set-target esp32s3 # For ESP32-S3
idf.py menuconfig
idf.py build
idf.py flashNote: By default, SPI and I2C sensor data collection are disabled. To enable them, add the following options to your build command:
- For I2C sensor support:
-DI2C_SENSOR_ENABLED=ON - For SPI SD card support:
-DSPI_SD_CARD_ENABLED=ON
Example:
idf.py build -DI2C_SENSOR_ENABLED=ON -DSPI_SD_CARD_ENABLED=ONTo contribute changes, follow these steps:
- Create a new branch:
git checkout -b your-feature-branch
- Make your changes and commit:
git add . git commit -m "Describe your changes"
- Push your branch to the remote repository:
git push origin your-feature-branch
- Create a Pull Request:
- Go to the repository on GitHub.
- Click "Compare & pull request" for your branch.
- Add a description and submit the pull request for review and approval.