install idf 5

This commit is contained in:
duffy 2026-01-29 20:39:20 +01:00
parent 0b09765013
commit 2228f8c94a
1 changed files with 80 additions and 7 deletions

View File

@ -48,23 +48,96 @@ Ein SIP-Telefon basierend auf ESP32-S3 mit Bluetooth- und USB-Headset-Unterstüt
## Installation
### Voraussetzungen
- ESP-IDF v5.0 oder neuer
- USB-Kabel für Programmierung
### ESP-IDF 5 installieren
#### Linux (Ubuntu/Debian)
```bash
# Abhängigkeiten installieren
sudo apt-get update
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv \
cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
# ESP-IDF klonen
mkdir -p ~/esp
cd ~/esp
git clone -b v5.2.2 --recursive https://github.com/espressif/esp-idf.git
# Tools installieren
cd ~/esp/esp-idf
./install.sh esp32s3
# Umgebung aktivieren (in jeder neuen Shell)
. ~/esp/esp-idf/export.sh
```
#### Arch Linux
```bash
# Abhängigkeiten
sudo pacman -S --needed gcc git make flex bison gperf python cmake ninja ccache dfu-util libusb
# Rest wie oben
mkdir -p ~/esp && cd ~/esp
git clone -b v5.2.2 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf && ./install.sh esp32s3
. ~/esp/esp-idf/export.sh
```
#### Windows
1. [ESP-IDF Tools Installer](https://dl.espressif.com/dl/esp-idf/) herunterladen
2. Installer ausführen, ESP-IDF v5.2.x auswählen
3. "ESP-IDF PowerShell" oder "ESP-IDF CMD" aus Startmenü öffnen
#### macOS
```bash
# Xcode Command Line Tools
xcode-select --install
# Homebrew Abhängigkeiten
brew install cmake ninja dfu-util python3
# ESP-IDF klonen und installieren
mkdir -p ~/esp && cd ~/esp
git clone -b v5.2.2 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf && ./install.sh esp32s3
. ~/esp/esp-idf/export.sh
```
### Umgebung dauerhaft aktivieren (optional)
```bash
# In ~/.bashrc oder ~/.zshrc einfügen:
alias get_idf='. ~/esp/esp-idf/export.sh'
```
Dann mit `get_idf` aktivieren.
### Build & Flash
```bash
# ESP-IDF Umgebung aktivieren
. $IDF_PATH/export.sh
# Konfigurieren
```bash
# ESP-IDF Umgebung aktivieren (falls nicht schon aktiv)
. ~/esp/esp-idf/export.sh
# In Projektverzeichnis wechseln
cd /pfad/zu/bluetooth-sip-client
# Target setzen
idf.py set-target esp32s3
# Optional: Konfiguration anpassen
idf.py menuconfig
# Bauen und Flashen
idf.py build flash monitor
```
**Tastenkürzel im Monitor:**
- `Ctrl+]` - Monitor beenden
- `Ctrl+T` dann `Ctrl+R` - Reset
## Ersteinrichtung
1. **ESP32 mit Strom versorgen**