Setup for using ESP32 development boards
Setup for using ESP32 development boards
Installing the ESP32 Core
Mac
- Open Terminal and execute the following command (copy->paste and hit enter):
mkdir -p ~/Documents/Arduino/hardware/espressif && \
cd ~/Documents/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32
- Once complete then with following copy->paste into terminal and hit enter
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python get.py
If you get the error below.
Install the command line dev tools with
xcode-select --install and try the command
above again:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcode-select --install
- Restart Arduino IDE
Windows
- Download and install the latest Arduino IDE
Windows Installer
from arduino.cc - Download and install Git from git-scm.com
- Start
Git GUI
and run through the following steps:- Select
Clone Existing Repository
- Select source and destination
- Sketchbook Directory: Usually
C:/Users/[YOUR_USER_NAME]/Documents/Arduino
and is listed underneath the "Sketchbook location" in Arduino preferences. - Source Location:
https://github.com/espressif/arduino-esp32.git
- Target Directory:
[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32
- Click
Clone
to start cloning the repository
- open a
Git Bash
session pointing to[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32
and executegit submodule update --init --recursive
- Open
[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32/tools
and double-clickget.exe
- When
get.exe
finishes, you should see the following files in the directory
- Plug your ESP32 board and wait for the drivers to install (or install manually any that might be required)
Linux
Installation instructions for Debian / Ubuntu OS
Install latest Arduino IDE from arduino.cc- Open Terminal and execute the following command (copy->paste and hit enter):
sudo usermod -a -G dialout $USER && \ sudo apt-get install git && \ wget https://bootstrap.pypa.io/get-pip.py && \ sudo python get-pip.py && \ sudo pip install pyserial && \ mkdir -p ~/Arduino/hardware/espressif && \ cd ~/Arduino/hardware/espressif && \ git clone https://github.com/espressif/arduino-esp32.git esp32 && \ cd esp32 && \ git submodule update --init --recursive && \ cd tools && \ python2 get.py
- Restart Arduino IDE
- If you have Arduino.app installed to /Applications/, modify the installation as follows, beginning at
mkdir -p ~/Arduino...
:
cd /Applications/Arduino_*/Contents/java/hardware/
mkdir -p espressif && \
cd espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python2 get.py```
Comments
Post a Comment