How to Flash a Program to the Micro Controller

Arduino IDE vorbereiten

Download Arduino IDE 1.8.10: https://www.arduino.cc/en/Main/Software

Das verwendete System auswählen, z.B. “Linux ARM 32 Bit”

in /opt verschieben: sudo mv arduino-1.8.10 /opt

entpacken: tar xf arduino-1.8.10-linuxarm.tar.xz

cd /opt/arduino-1.8.10
./install.sh
sudo ./install.sh

Weitere Voraussetzungen:

sudo apt install python-serial

oder

sudo apt install python-serial

und

usermod -aG dialout $USER

install.sh als pi kann /usr/local/bin/arduino nicht anlegen Mit sudo kann es auf /root/.config/mimeapps.list nicht zugreifen

“Arduino IDE” aus den Menü “Entwicklung” aufrufen.

ESP32 hinzufügen

File -> Preferences -> Additional Boards Manager URLs:

https://dl.espressif.com/dl/package_esp32_index.json

ESP32 via USB-Kabel verbinden

Konfigurationseinstellungen:

Flashen

Sketch erstellen oder vorhandenen Sketch öffnen

Mit Sketch -> Upload flashen