docs/en/installing.rst
########## Installing ##########
This guide will show how to install the Arduino-ESP32 support.
We recommend you install the support using your favorite IDE, but other options are available depending on your operating system. To install Arduino-ESP32 support, you can use one of the following options.
.. note:: Users in China might have troubles with connection and download speeds using GitHub. Please use our Jihulab mirror as the repository source:
https://jihulab.com/esp-mirror/espressif/arduino-esp32.git
.. figure:: ../_static/logo_arduino.png :align: center :width: 200 :figclass: align-center
This is the way to install Arduino-ESP32 directly from the Arduino IDE.
.. note::
For overview of SoC's support, take a look on Supported Soc's table <https://docs.espressif.com/projects/arduino-esp32/en/latest/getting_started.html#supported-soc-s>_ where you can find if the particular chip is under stable or development release.
Stable release link::
https://espressif.github.io/arduino-esp32/package_esp32_index.json
Development release link::
https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json
Users in China might have troubles with connection and download speeds using the links above. Please use our Jihulab mirror:
Stable release link::
https://jihulab.com/esp-mirror/espressif/arduino-esp32/-/raw/gh-pages/package_esp32_index_cn.json
Development release link::
.. note:: Starting with the Arduino IDE version 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, macOS, and Linux.
To start the installation process using the Boards Manager, follow these steps:
Install the current upstream Arduino IDE at the 1.8 level or later. The current version is at the arduino.cc_ website.
Start Arduino and open the Preferences window.
.. figure:: ../_static/install_guide_preferences.png :align: center :width: 600 :figclass: align-center
.. figure:: ../_static/install_guide_boards_manager_url.png :align: center :width: 600 :figclass: align-center
.. figure:: ../_static/install_guide_boards_manager_esp32.png :align: center :width: 600 :figclass: align-center
.. warning:: Arduino ESP32 core v2.x.x cannot be used on Windows 8.x x86 (32 bits), Windows 7 or earlier. The Windows 32 bits OS is no longer supported by this toolchain.
The Arduino ESP32 v1.0.6 still works on WIN32. You might want to install python 3.8.x because it is the latest release supported by Windows 7.
Steps to install Arduino ESP32 support on Windows:
Step 1
Windows Installer from arduino.ccGit GUI and do the following steps:Clone Existing Repository.. figure:: ../_static/win-gui-1.png :align: center :width: 600 :figclass: align-center
C:/Users/[YOUR_USER_NAME]/Documents/Arduino and is listed underneath the "Sketchbook location" in Arduino preferences.https://github.com/espressif/arduino-esp32.git[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32Clone to start cloning the repositoryStep 2
.. figure:: ../_static/win-gui-2.png :align: center :figclass: align-center
Step 3
.. figure:: ../_static/win-gui-3.png :align: center :figclass: align-center
Git Bash session pointing to [ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32 and execute git submodule update --init --recursive[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32/tools and double-click get.exeStep 4
.. figure:: ../_static/win-gui-4.png :align: center :figclass: align-center
get.exe finishes, you should see the following files in the directoryStep 5
.. figure:: ../_static/win-gui-5.png :align: center :figclass: align-center
Tools > Board menu.. figure:: ../_static/arduino-ide.png :align: center :figclass: align-center
How to update to the latest code
Git GUI and you should see the repository under Open Recent Repository. Click on it!.. figure:: ../_static/win-gui-update-1.png :align: center :figclass: align-center
Remote select Fetch from > origin.. figure:: ../_static/win-gui-update-2.png :align: center :figclass: align-center
Git GUI[ARDUINO_SKETCHBOOK_DIR]/hardware/espressif/esp32/tools and double-click get.exe.. figure:: ../_static/win-gui-4.png :align: center :figclass: align-center
.. figure:: ../_static/logo_linux.png :align: center :width: 200 :figclass: align-center
Debian/Ubuntu
Install latest Arduino IDE from arduino.cc_.
Open Terminal and execute the following command (copy -> paste and hit enter):
.. code-block:: bash
sudo usermod -a -G dialout $USER &&
sudo apt-get install git &&
wget https://bootstrap.pypa.io/get-pip.py &&
sudo python3 get-pip.py &&
sudo pip3 install pyserial &&
mkdir -p ~/Arduino/hardware/espressif &&
cd ~/Arduino/hardware/espressif &&
git clone https://github.com/espressif/arduino-esp32.git esp32 &&
cd esp32/tools &&
python3 get.py
Restart Arduino IDE.
If you have Arduino installed to ~/, modify the installation as follows, beginning at mkdir -p ~/Arduino/hardware:
.. code-block:: bash
cd ~/Arduino/hardware
mkdir -p espressif &&
cd espressif &&
git clone https://github.com/espressif/arduino-esp32.git esp32 &&
cd esp32/tools &&
python3 get.py
Fedora
arduino.cc_... note::
Command $ sudo dnf -y install arduino will most likely install an older release.
.. code-block:: bash
sudo usermod -a -G dialout $USER &&
sudo dnf install git python3-pip python3-pyserial &&
mkdir -p ~/Arduino/hardware/espressif &&
cd ~/Arduino/hardware/espressif &&
git clone https://github.com/espressif/arduino-esp32.git esp32 &&
cd esp32/tools &&
python get.py
openSUSE
Install the latest Arduino IDE from arduino.cc_.
Open Terminal and execute the following command (copy -> paste and hit enter):
.. code-block:: bash
sudo usermod -a -G dialout $USER &&
if [ python --version 2>&1 | grep '2.7' | wc -l = "1" ]; then
sudo zypper install git python-pip python-pyserial;
else
sudo zypper install git python3-pip python3-pyserial;
fi &&
mkdir -p ~/Arduino/hardware/espressif &&
cd ~/Arduino/hardware/espressif &&
git clone https://github.com/espressif/arduino-esp32.git esp32 &&
cd esp32/tools &&
python get.py
Install the latest Arduino IDE from arduino.cc_.
Open Terminal and execute the following command (copy -> paste and hit enter):
.. code-block:: bash
mkdir -p ~/Documents/Arduino/hardware/espressif &&
cd ~/Documents/Arduino/hardware/espressif &&
git clone https://github.com/espressif/arduino-esp32.git esp32 &&
cd esp32/tools &&
python get.py
Where ~/Documents/Arduino represents your sketch book location as per "Arduino" > "Preferences" > "Sketchbook location" (in the IDE once started). Adjust the command above accordingly.
xcode-select --install and try the command above again:.. code-block:: bash
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
.. code-block:: bash
xcode-select --install
Try python3 instead of python if you get the error: IOError: [Errno socket error] [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) when running python get.py
If you get the following error when running python get.py: urllib.error.URLError: <urlopen error SSL: CERTIFICATE_VERIFY_FAILED, go to Macintosh HD > Applications > Python3.6 folder (or any other python version), and run the following scripts: Install Certificates.command and Update Shell Profile.command
Restart Arduino IDE.
.. _Arduino.cc: https://www.arduino.cc/en/Main/Software