Skip to content

Programming ESP8266

Juraj Andrássy edited this page Nov 18, 2017 · 14 revisions

ESP8266 is supported in Arduino IDE with Arduino esp8266 core. It means that arduino sketch can be uploaded into ESP8266.

Install esp8266 packages

Arduino Uno Wifi Dev Ed is supported from version 2.4 of the esp8266 core for Arduino IDE. For now, the version 2.4 is only a release candidate.

To install this pre-release using boards manager, follow the instructions, with the package URL replaced with the following one:

https://github.com/esp8266/Arduino/releases/download/2.4.0-rc1/package_esp8266com_index.json

Additionally, you can install the Arduino ESP8266 filesystem uploader IDE plugin

Board selection

In tools menu select board options.

  1. Choose Arduino from the ESP8266 section of the Boards menu.
  2. Next choose Model Uno Wifi.
  3. Flash Size selection should be "4M (1M SPIFFS)"

From now on always check the selected board in the right bottom corner of the IDE window. For ATmega sketch it should show "Arduino Uno Wifi on ...", for the ESP sketch "Arduino, Uno WiFi, 115200, 4M (1MB SPIFFS) on...".

Upload

Before using the Upload button with your ESP sketch, first Upload the EspProxy sketch with '#define FLASHING` into ATmega.

Clone this wiki locally