Installing — ESP8266 Arduino Core documentation (original) (raw)

Boards Manager

This is the suggested installation method for end users.

Prerequisites

Instructions

For more information on the Arduino Board Manager, see:

Using git version

This is the suggested installation method for contributors and library developers.

Prerequisites

Instructions - Windows 10

Not doing this step would cause build failure when attempting to include SoftwareSerial.h, Ethernet.h, etc. See our .gitmodules file for the full list.

Note that you could, in theory install in C:\Program Files (x86)\Arduino\hardware however this has security implications, not to mention the directory often gets blown away when re-installing Arduino IDE. It does have the benefit (or drawback, depending on your perspective) - of being available to all users on your PC that use Arduino.

Instructions - Other OS

Not doing this step would cause build failure when attempting to include SoftwareSerial.h, Ethernet.h, etc. See our .gitmodules file for the full list.

If you get an error message stating that python3 is not found, you will need to install it (most modern UNIX-like OSes provide Python 3 as part of the default install). To install you will need to use sudo yum install python3, sudo apt install python3, or brew install python3as appropriate. On the Mac you may get an error message like:

python3 get.py Platform: x86_64-apple-darwin Downloading python3-macosx-placeholder.tar.gz Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open encode_chunked=req.has_header('Transfer-encoding')) ... File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1117, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

This is because Homebrew on the Mac does not always install the required SSL certificates by default. Install them manually (adjust the Python 3.7 as needed) with:

cd "/Applications/Python 3.7/" && sudo "./Install Certificates.command"

Maintaining

To keep up with the development branch

git switch --recurse-submodules --discard-changes master git pull --recurse-submodules cd tools python3 get.py

Pull requests

To test not yet merged Pull Request, first you have to find its ID number. This is the sequence of digits right after the pull request title.

Open terminal and cd into the directory where the repository was previously cloned. For example, 12345 is the Pull Request ID

git fetch origin pull/12345/head git switch --detach --recurse-submodules --discard-changes FETCH_HEAD

When Pull Request updates packaged tools, make sure to also fetch their latest versions.

To go back to using the development branch

git switch --recurse-submodules --discard-changes master git pull --recurse-submodules

Using PlatformIO

PlatformIOis an open source ecosystem for IoT development with a cross-platform build system, a library manager, and full support for Espressif (ESP8266) development. It works on the following popular host operating systems: macOS, Windows, Linux 32/64, and Linux ARM (like Raspberry Pi, BeagleBone, CubieBoard).