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
  1. Download and install the latest Arduino IDE Windows Installer from arduino.cc
  2. Download and install Git from git-scm.com
  3. Start Git GUI and run through the following steps:
    • Select Clone Existing Repository
      Step 1
    • 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
        Step 2 Step 3
    • open a Git Bash session pointing to [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32 and execute git submodule update --init --recursive
    • Open [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32/tools and double-click get.exe
      Step 4
    • When get.exe finishes, you should see the following files in the directory
      Step 5
  4. 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```
 For further information visit this site here

References

hackaday website


Comments

Popular

Installing CH340/ CH341 drivers for Arduino, ESP32 and ESP8266 boards