Environment Setup
Install ESP-IDF and configure your development environment for GhostESP.
Prerequisites
- Hardware: ESP32-based board (S3, S2, C3, C6, C5, or original ESP32), USB cable
- Software: Python 3.8+, Git
Install ESP-IDF
GhostESP requires ESP-IDF v5.5.3. Follow the official Espressif guide for your OS:
Quick Start (Windows)
Install via EIM:
winget install Espressif.EIM-CLI eim install -i v5.5.3Or manually:
git clone -b v5.5.3 --recursive https://github.com/espressif/esp-idf.git cd esp-idf install.bat
Activate the Environment
Each new terminal session needs ESP-IDF exported:
PowerShell:
. $env:IDF_PATH\export.ps1
CMD:
%IDF_PATH%\export.bat
Linux/macOS:
source $IDF_PATH/export.sh
Verify Installation
idf.py --version
Should output ESP-IDF v5.5.3.
Clone GhostESP
git clone https://github.com/GhostESP-Revival/GhostESP.git
cd GhostESP
Common Commands
| Command | Description |
|---|---|
idf.py set-target esp32s3 | Set target chip |
idf.py menuconfig | Open configuration menu |
idf.py build | Build firmware |
idf.py -p COM3 flash | Flash to device |
idf.py -p COM3 monitor | Open serial monitor |
idf.py -p COM3 flash monitor | Flash and monitor |
idf.py fullclean | Clean build artifacts |
Next Steps
- Adjust build options - Configure features via menuconfig
- Create custom board configs - Add support for new hardware
