The ESP8266 community created an add-on for the Arduino IDE that allows you to program the ESP8266 using the Arduino IDE and its programming language.
This tutorial shows how to install the ESP8266 board in Arduino IDE whether you’re using Windows, Mac OS X or Linux.
Watch the Video Tutorial
This tutorial is available in video format (watch below) and in written format (continue reading this page).
If you like the ESP8266 and want to build more projects, you can get my eBook: Home Automation using ESP8266.
Prerequisites: Arduino IDE Installed
Before starting this installation procedure, make sure you have the latest version of the Arduino IDE installed in your computer. If you don’t, uninstall it and install it again. Otherwise, it may not work.
Having the latest Arduino IDE software installed from arduino.cc/en/Main/Software, continue with this tutorial.
Do you need an ESP8266 board? You can buy it here.
Install ESP8266 Add-on in Arduino IDE
To install the ESP8266 board in your Arduino IDE, follow these next instructions:
In your Arduino IDE, go to File> Preferences
Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json into the “Additional Boards Manager URLs” field as shown in the figure below. Then, click the “OK” button:
Note: if you already have the ESP32 boards URL, you can separate the URLs with a comma as follows:
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
Open the Boards Manager. Go to Tools > Board > Boards Manager…
Search for ESP8266 and press install button for the “ESP8266 by ESP8266 Community“:
That’s it. It should be installed after a few seconds.
Testing the Installation
To test the ESP8266 add-on installation, let’s see if we can blink an LED with the ESP8266 using the Arduino programming language.
Parts Required
Here’s the hardware that you need to complete this project:
If you’re using an ESP8266-01, you also need an FTDI programmer to upload code.
You can use the preceding links or go directly to MakerAdvisor.com/tools to find all the parts for your projects at the best price!
Uploading the Sketch
Uploading the Sketch to the ESP-12E
If you’re using an ESP-12E NodeMCU Kit, uploading the sketch is very simple, since it has built-in programmer. Plug your board to your computer. Make sure you have the right board selected:
You also need to select the Port:
Then, copy the code provided:
/*********
Rui Santos
Complete project details at https://randomnerdtutorials.com
*********/
int pin = 2;
void setup() {
// initialize GPIO 2 as an output.
pinMode(pin, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(pin, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(pin, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Click the “Upload” button in the Arduino IDE and wait a few seconds until you see the message “Done uploading.” in the bottom left corner.
Uploading the Sketch to the ESP-01
Uploading code to the ESP-01 requires establishing a serial communication between your ESP8266 and a FTDI Programmer as shown in the schematic diagram below.
The following table shows the connections you need to make between the ESP8266 and the FTDI programmer.
ESP8266 | FTDI programmer |
RX | TX |
TX | RX |
CH_PD | 3.3V |
GPIO 0 | GND |
VCC | 3.3V |
GND | GND |
If you have a brand new FTDI Programmer and you need to install your FTDI drivers on Windows PC, visit this website for the official drivers: http://www.ftdichip.com/Drivers/VCP.htm.
Then, you just need to connect the FTDI programmer to your computer, and upload the sketch to your ESP8266 board. You should see the “Done Uploading” message after a few seconds.
Schematic
If you’re using an ESP8266-12E
Connect an LED to your ESP8266, as shown in the following schematic diagram. The LED should be connected to GPIO 2 (D4).
If you’re using an ESP8266-01
If you’re using the ESP8266-01 assemble the following circuit.
If everything went well, your LED should be blinking every 1 second.
Troubleshooting
1) If you try to upload a new sketch to your ESP8266 and you get this error message “esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header“. It means that your ESP8266 is not in flashing/uploading mode.
Having the right board name and COM port selected, follow these steps:
- Hold-down the “BOOT/FLASH” button in your ESP8266 development board
- Press the “Upload” button in the Arduino IDE to upload your sketch:
- When you see the “Connecting….” message in your Arduino IDE, release the finger from the “BOOT/FLASH” button
- After that, you should see the “Done uploading” message
Your ESP8266 should have the new sketch running. Press the “ENABLE/RESET” button to restart the ESP8266 and run the new uploaded sketch.
2) If you get the error “COM Port not found/not available”, you might need to install the CP210x Drivers:
- Install USB Drivers – CP210x USB to UART Bridge (Windows PC)
- Install USB Drivers – CP210x USB to UART Bridge (Mac OS X)
Wrapping Up
This is a quick guide that illustrates how to prepare your Arduino IDE for the ESP8266 on a Windows PC, Mac OS X, or Linux computer.
Next, you might want to read: Getting started with ESP8266.
That’s it, you’re ready to start building your own IoT projects with the ESP8266!
- Home Automation Using ESP8266
- ESP8266 Web Server Step-by-step
- ESP8266 Wi-Fi Button – DIY Amazon Dash Button Clone
- ESP8266 Daily Task – Publish Temperature Readings to ThingSpeak
- ESP8266 Weather Forecaster
- Nextion Display with ESP8266 – Touchscreen User Interface for Node-RED
- More ESP8266 projects…
Do you have any questions? Leave a comment below!
Thanks for reading. If you like this post probably you might like my next ones, so subscribe to my newsletter.
Hi
I need some help…!
I want o using esp8266 esp-07 standalone and program it with the arduino ids but i can’t even compile the examples with the ide and I fallow all the instructions in the github website and also your website and the error is compile error please help me how can i fix this problem.
thankes alot
Can you see the ESP8266 boards in the tools section? Have you restarted your Arduino IDE? Which error is occurring?
Hi
I need some help…!
I want o using esp8266 esp-07 standalone and program it with the arduino ids but i can’t even compile the examples with the ide and I fallow all the instructions in the github website and also your website and the error is compile error please help me how can i fix this problem.
thankes alot
hola confirma que no tengas otra librería declarada, me pasaba lo mismo con un programa que usaba anteriormente y al no tener instalada esa librería en especifico, no podía compilar.
#include <ESP8266WiFi.h>
la idea es que solo incluyas esa librería si tienes otra, elimínala y haz la prueba para ver si compila.
please where is code Rui
It’s on this exact page
hi rui
but for start the led blink i remove the gpio 0 from 3v
the image is incorrect 🙂
thankes alot for all
The GPIO 0 connected to VCC is to make that your ESP doesn’t boot in flash/upload mode.
Thanks!
Rui
Hi Rui
When I try to upload the code, the compilation give me some errors
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Do you know because this?
Hi Oscar,
Your ESP8266 is not in flash mode or it’s having a power issue.
Can you read this troubleshooting guide? https://randomnerdtutorials.com/esp8266-troubleshooting-guide/
I hope this helps,
Rui
Thanks Rui,
I’ve to flash my ESP again and upload the code, but the LED isn’t blinking, and I really doing step by step.
One note, as someone who just tried this, and…. bombed… This will require one of the 1.6.x or newer versions of the Arduino IDE.. I’m running a UBUNTU desktop, and it’s version for the IDE is 1.0.5… Not going to work! (and for some reason, they install the IDE in an odd fashion, making it tougher to install the newer version.)
Hello is there a way to password protect my esp’s access point. Thanks.
Hello MR. Rui Santos
I am a novice at Arduino projects.
Install ESP8266 according to your instructions and uplaud to get the following information:
I am a novice at Arduino projects.
Install ESP8266 according to your instructions and uplaud to get the following information:
I am a novice at Arduino projects.
Install ESP8266 according to your instructions and uplaud to get the following information:
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
Please help.
Best Regaeds
Blagoja Andonoski
This might help: https://randomnerdtutorials.com/esp8266-troubleshooting-guide/
Sketch uses 222,241 bytes (44%) of program storage space. Maximum is 499,696 bytes.
Global variables use 31,576 bytes (38%) of dynamic memory, leaving 50,344 bytes for local variables. Maximum is 81,920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
Your ESP is not establishing a serial communication with your computer, so it can’t upload any code.
I hope this post helps: https://randomnerdtutorials.com/esp8266-troubleshooting-guide/
Hi Rui!
I have NodeMCU installed on my ESP-01.
Can’t I use Arduino IDE with it? If I can then how? if I can’t than what shall I do to be able to use Arduino IDE?
Greeings,
Prithul
You can use the Arduino IDE, if you follow this tutorial will overwrite the NodeMCU firmware with the Arduino IDE blink sketch
Thank you very much for this tutorial.
You’re welcome,
Rui
Hi Rui Santos,
When I go to boards manager it says: Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json and doesn’t download anything. I am using OS X El Capitan. I’ve try in windows machine and it works…
Do you think is some issue with the mac machine?
Regards Leandro
Thank you Mr.Rui. I followed your instructions in this tutorial, but I have this error message:
“/bin/xtensa-1×106-elf-g++ ” not found
Error compiling for board Generic ESP6266 module
Build options changed, rebuilding all
exec: “/bin/xtensa-lx106-elf-g++”: file does not exist
Error compiling for board Generic ESP8266 Module.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Hi
I want to use 2 esp s and two arduino one of them will act as a server and the other is client to control my combi using a relay. One of them will get the temperature of my room by means of dht22 and send it to other when it’s below the temperature I want the other esp will take the information and trigger the relay. How can I do this?
Hi Neil,
I don’t have any tutorials on that exact subject.
Thanks,
Rui
My LED does not blink. Please help me with this.
You didn’t provide any details, so it can be anything… Please read this troubleshooting guide that might help: https://randomnerdtutorials.com/esp8266-troubleshooting-guide/
Found your site. And have an Adafruit ESP8266 board (https://www.adafruit.com/product/2821).
Loaded your code and it works straight away!
Don’t need any external LEDs, your code will turn the red & blue LEDs off and on. Just need to reverse the HIGH / LOW in the socket On / Off calls.
Thanks for the excellent post!
Mike
I’m using the Arduino IDE version 1.8.5 with a Windows computer, Arduino UNO, and an ESP8266-01. I tried uploading the blink_led_8266 sketch. The IDE keeps reporting that it “can not compile”. I can’t figure out what is going on. When I go back to an old version IDE I can upload sketches without any problem. Any ideas?
Hi Robert.
Have you installed the ESP8266 board in the new version of Arduino IDE 1.8.5?
Having two versions of Arduino IDE may cause conflicts, because you may think you’re running one version instead of the other.
You need to install the ESP8266 board in both versions, if you want to keep them both installed.
Hi Sara,
I installed the Arduino IDE 1.8.5 on another computer with Windows 10.
The error message that I’m getting is as follows:
Warning: espcomm_send_command: wrong direction/command:
0x00 0x8, expected 0x01 0x08
Warning: espcomm_sync failed
Error: espcomm_open failed
Error: espcomm_upload_mem failed
I get the Arduino and the ESP8266 to respond to the uploading of the sketch by seeing the Arduino led flash and also the blue led on the ESP8266 flash.
Where do I go from here? I’m going to order an FTDI programmer to see if that makes a difference rather then using the Arduino UNO.
Let me know what you think.
Thank you.
I would recommend using an FTDI, and that should solve your problem, but an Arduino Uno should also work.
That error means that your computer is not making a serial connection with your ESP8266.
You need to double check the TX and RX connections.
You might also need to reboot your ESP while GPIO 0 is connected to GND, to ensure that your ESP boots in uploading mode.
I hope this helps.
thank you .you solve my problem
Hi, Why I can’t select any port in the “Tool” menu?
Hi.
Please read our troubleshooting guide bullet 6 (this is for ESP32, but it also applies to ESP8266): https://randomnerdtutorials.com/esp32-troubleshooting-guide/
I hope this helps.
Regards,
Sara
Great! Thank you very much!
The thing is my laptop said it was downloading something the first time I plugged the board, but I didn’t check what the result was. Thanks again!
Mihai
Rui,
I am having trouble getting the ESp8266 board manager to load.
I get this error:
Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json
I am running ver 1.8.9
I have re-booted IDE and even the computer, still the same.
I loaded the ESP32 board manager and it worked fine.
Did you ever figure this out? I had no problem with the ESP32 board manager, but the same fail as you for ESP8266 board manager.
Thank so much. God bless y’all.
Ok I have tried everything under the sun(internet searches) I keep getting the same message Arduino: 1.8.13 (Mac OS X), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:none OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 57600”
/private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/hardware -hardware /Users/Owner/Library/Arduino15/packages -tools /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Owner/Library/Arduino15/packages -built-in-libraries /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/libraries -libraries /Users/Owner/Documents/Arduino/libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=57600 -vid-pid=0000_0000 -ide-version=10813 -build-path /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711 -warnings=default -build-cache /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_cache_622285 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.python3.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.mklittlefs.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -verbose /Users/Owner/Documents/Arduino/sketch_jul17cb/sketch_jul17cb.ino
/private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/hardware -hardware /Users/Owner/Library/Arduino15/packages -tools /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/Owner/Library/Arduino15/packages -built-in-libraries /private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/libraries -libraries /Users/Owner/Documents/Arduino/libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=57600 -vid-pid=0000_0000 -ide-version=10813 -build-path /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711 -warnings=default -build-cache /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_cache_622285 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.python3.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.mklittlefs.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=/Users/Owner/Library/Arduino15/packages/esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -verbose /Users/Owner/Documents/Arduino/sketch_jul17cb/sketch_jul17cb.ino
Using board ‘nodemcuv2’ from platform in folder: /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0
Using core ‘esp8266’ from platform in folder: /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0
/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/makecorever.py –build_path /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711 –platform_path /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0 –version unix-2.6.0
fatal: not a git repository (or any of the parent directories): .git
Detecting libraries used…
/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/include -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/lwip2/include -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/include -I/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -DNEW_OOM_ABORT -w -x c++ -E -CC -DNONOSDK22x_191024=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_NODEMCU\”” -DFLASHMODE_DIO -DESP8266 -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/cores/esp8266 -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/variants/nodemcu /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch/sketch_jul17cb.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes…
/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/include -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/lwip2/include -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/include -I/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -DNEW_OOM_ABORT -w -x c++ -E -CC -DNONOSDK22x_191024=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_NODEMCU\”” -DFLASHMODE_DIO -DESP8266 -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/cores/esp8266 -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/variants/nodemcu /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch/sketch_jul17cb.ino.cpp -o /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
/private/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/AppTranslocation/898E1FD5-7C13-486F-8EB4-BF2FCC9AB98A/d/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u –language-force=c++ -f – –c++-kinds=svpf –fields=KSTtzns –line-directives /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch…
/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/signing.py –mode header –publickey /Users/Owner/Documents/Arduino/sketch_jul17cb/public.key –out /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/core/Updater_Signing.h
/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/include -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/lwip2/include -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/include -I/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/core -c -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNEW_OOM_ABORT -DNONOSDK22x_191024=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_NODEMCU\”” -DFLASHMODE_DIO -DESP8266 -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/cores/esp8266 -I/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/variants/nodemcu /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch/sketch_jul17cb.ino.cpp -o /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch/sketch_jul17cb.ino.cpp.o
Compiling libraries…
Compiling core…
Using precompiled core: /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_cache_622285/core/core_38d1b48b8c77fb185041ca4ab7d7c526.a
Linking everything together…
/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-gcc -CC -E -P -DVTABLES_IN_FLASH /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/ld/eagle.app.v6.common.ld.h -o /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/local.eagle.app.v6.common.ld
/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-gcc -fno-exceptions -DNEW_OOM_ABORT -Wl,-Map -Wl,/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.map -g -Os -nostdlib -Wl,–no-check-sections -u app_entry -u _printf_float -u _scanf_float -Wl,-static -L/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/lib -L/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/lib/NONOSDK22x_191024 -L/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/ld -L/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sdk/libc/xtensa-lx106-elf/lib -Teagle.flash.4m.ld -Wl,–gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -o /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.elf -Wl,–start-group /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch/sketch_jul17cb.ino.cpp.o /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_cache_622285/core/core_38d1b48b8c77fb185041ca4ab7d7c526.a -lhal -lphy -lpp -lnet80211 -llwip2-536-feat -lwpa -lcrypto -lmain -lwps -lbearssl -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,–end-group -L/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711
/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/elf2bin.py –eboot /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/bootloaders/eboot/eboot.elf –app /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.elf –flash_mode dio –flash_freq 40 –flash_size 4M –path /Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin –out /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.bin
Creating BIN file “/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.bin” using “/var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.elf”
/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/signing.py –mode sign –privatekey /Users/Owner/Documents/Arduino/sketch_jul17cb/private.key –bin /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.bin –out /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.bin.signed –legacy /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.bin.legacy_sig
/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/sizes.py –elf /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.elf –path /Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin
Executable segment sizes:
IROM : 228344 – code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26556 / 32768 – code in IRAM (ICACHE_RAM_ATTR, ISRs…)
DATA : 1240 ) – initialized variables (global, static) in RAM/HEAP
RODATA : 1520 ) / 81920 – constants (global, static) in RAM/HEAP
BSS : 24896 ) – zeroed variables (global, static) in RAM/HEAP
/Users/Owner/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-size -A /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.elf
Sketch uses 257660 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27656 bytes (33%) of dynamic memory, leaving 54264 bytes for local variables. Maximum is 81920 bytes.
/Users/Owner/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/upload.py –chip esp8266 –port /dev/cu.Bluetooth-Incoming-Port –baud 57600 flash_id –end –chip esp8266 –port /dev/cu.Bluetooth-Incoming-Port –baud 57600 –before default_reset –after hard_reset write_flash 0x0 /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_967711/sketch_jul17cb.ino.bin –end
esptool.py v2.7
Serial port /dev/cu.Bluetooth-Incoming-Port
Connecting…….._____….._____….._____….._____….._____….._____…..____Traceback (most recent call last):
File “/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/upload.py”, line 25, in
esptool.main(fakeargs)
File “/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool/esptool.py”, line 2841, in main
esp.connect(args.before)
File “/Users/Owner/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool/esptool.py”, line 483, in connect
raise FatalError(‘Failed to connect to %s: %s’ % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
If the port is correct press the boot button (the other side of Reset) until you have connection, then release it.
hello i want to make a car using esp8266 E12 by controlling using phone gestures
is there is any possible code for it ……..
Hi.
We don’t have any code for that.
Regards,
Sara
I have never gotten this to work.
Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json
Arduino 1.8.8
Windows 10
Rebooted, upgraded Arduino (started trying to use this a while ago), no change. Same error every time I start up the Arduino IDE. What am I doing wrong?
Hi.
See if this solves your issue: https://randomnerdtutorials.com/solved-arduino-ide-esp32-esp8266-installation/
Regards,
Sara
I had not installed the ESP32 yet, so I went ahead and used that page to do so. It worked.
I followed the instructions to the letter for ESP8266. I even deleted the line that already had http://arduino.esp8266.com/stable/package_esp8266com_index.json in it and copy-pasted it again from the website, this time at the end of the list.
Same result –
Error Downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json
And as before, in Boards Manager, all I see for ESP8266 is the SparkFun stuff.
I’ve tried turning off my VPN, rebooting Arduino IDE, rebooting Windows, tried at home, tried using my cell phone as a WiFi hotspot. Always the same, but only with this.
Thank you,
Same problem, if you have any solution for this problem please share. Thank you.
Hi.
Check this: https://randomnerdtutorials.com/solved-arduino-ide-esp32-esp8266-installation/
Regards,
Sara
Hello I am using ESP 8266 with Cayenne MQTT ESP8266 library on Arduino ide when I upload code, it connect with Wi-Fi and just run for 2 to 3 min and after that Wi-Fi connection and the code all just stop and ESP run its led blink code which I first run on it. kindly anyone tell me what I do.
Hello Rui…!
Hello Sara…!
Thanks for this great tutorial.
I’m using ESP-01. The code and everything works well. But only after plug out/in the CH_EN pin twice. and then the blue led of the board will slightly shine.
Is there any explanation?
Thanks in advance!!
Best regards.
Omar
Hi There I have still not heard re the problem I am having so just can use the esp8266 – uploading your test program produces a message saying “hard resetting via RTS pin” – this message never clears so I cant continue – can you help please
Malcolm
Hi Malcom.
That’s the usual message that you get after uploading the code.
Simply press the board RST button so that it starts running the code from the start.
Regards,
Sara
Hi Rui & Sara,
I’m trying to get this to work, but something’s off.
I loaded the libraries (add ZIP library) but when I want to install the ESP Daily Task library (“esp daily task” in edit box), the Library Manager window stays blank. Tried restarting the IDE to no avail. Is there something I’m missing?
Thanks in advance for your reaction.
Kind regards,
Frank
Hi.
Alternatively, you cand download the library in this link:https://github.com/RuiSantosdotme/ESPDailyTask/archive/master.zip
Then, go to Sketch > Library > Add . ZIP folder and select the downloaded .zip folder.
Regards,
Sara
Hi Sara,
When I do that I get the message: “A library named ESPDailyTask-master already exists”
When I open the boards manager I get: “Could not find boards.txt in C:\Users\Frank\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6. Is it pre-1.5?”
There is a 1.0.4 directory in which the boards.txt file is present, but there are no entries for the ESP8266 in that file.
In the 1.0.4 directory there are a bunch of subdirectories (cares, libraries, tools, variants) and some files (boards.txt, platform.txt, programmers.txt). In the 1.0.6 directory just one subdirectory (libraries), in which there is a path with empty subdirectories (except for a single subdirectory: C:\Users\Frank\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\ESP32\examples\Camera\CameraWebServer-the 4 Camerwebserver files-).
If I UNZIP the library file there’s not much in there: 2 subdirectories (examples and src) and 3 files: keywords.txt, library.properties, README.adoc.
What would be the next step?
Thanks in advance.
Regards,
Frank
Hi,
Any thoughts?
Problem persists.
Regards,
Frank
Hi.
Are you sure you don’t have the library already installed?
That’s what the error message is saying.
If you are not able to solve the issue, it is better to uninstall Arduino IDE, delete all related folders, and try to install everything from the start.
Regards,
Sara
Hi,
The error message says that the library is already installed.
I have uninstalled the Arduino IDE, removed all directories and entries in the Registry. Reinstalled the IDE (version 1.8.15) and went through all the steps above. When entering “esp daily task” in the library manager I still get a blank screen.
I have no idea what to do next…
Regards,
Frank
Hi again.
As I’ve told you, you need to install the library like this:
Download the library here:https://github.com/RuiSantosdotme/ESPDailyTask/archive/master.zip
Then, go to Sketch > Library > Add . ZIP folder and select the downloaded .zip folder.
Then, just restart your Arduino IDE.
When compiling or uploading the code, ensure you have an ESP8266 board selected in Tools > Boards.
Regards,
Sara
Yes, I keep doing that and I invariably get the message: “A library named ESPDailyTask-master already exists”.
With always the same result: a blank screen in the Library Manager.
Regards,
Frank
Hi Frank,
THE HARD WAY,
I had some problems compiling a program when the compile complain about a library.
What i did , took longer but solved the problem.
Here you find ALL arduino versions.
Select one version previous yours, which ever you want.
Download and start install.
You get the message that the present version will be removed.
Say YES
Install older version.
Do not compile to waste your time.
Now, download the version you had, and do again a clean install (remove old and install new)
Install library as Sara sugested.
Bingo, no more errors messages.
I had the problem, before. Now no more.
Also, during the development of the project avoid doing an upgrade of software or boards.
If it is compile, don’t change until project is finished.
Good luck.
hi, download speed is very very low, how can i solve it? my network doesnt have a problem
Hi. There are cheap ESP8266 modules in the market that wanted to use as controllers of other RF modules. How can I make sure in such case that wifi does not cause any trouble or is preferably totally shut down?
Hi Sara,
after years of good functioning ESP8266 disappeared from the list of mi Arduino IDE 1.8.5.
Is ESP8266 down?
Thanks
Renzo
Hi.
That’s weird…
Are you sure you’re not using another arduino version you have on your computer?
Maybe it is better to start with a fresh install…
Regards,
Sara
Hi, i uploaded code without ftdi interface, just my USB cable, is it bad ?
No.
You can use a USB cable just fine.
Regards,
Sara
Hello. Is anyone working with the Wemos D1 Mini V4.0.0 I don’t see this type in the board selection list of Arduinio ide.
How can I install that board.
Or am I doing something completely wrong.
I can put software in it, but the serial port gives strange characters.
My other esp8266 types work.
Thank you in advance.
Hi.
Maybe there is not a wemos d1 mini v4.0. You need to select another Wemos D1 Mini option.
Regards,
Sara
Hello Sara.
Yes it is a Wemos D1 Mini V4.0.0 .
But the problem lay elsewhere than I expected.
It took a lot of time and I still don’t fully understand what was really wrong with Arduino IDE.
At one point I simply reinstalled the ESP8266 software.
Now it works as it should and remains stable. This is the same version as before.
I then choose LOLIN(WEMOS)D1 R2&mini as upload option.
Thank you for thinking along.
Old man Bertran.
What could be the problem trying to install esp8266 board on Arduino, but Arduino displaying ‘error download’.
I would appreciate your response Sir.
Hi.
Do you get that error during the installation process?
Check this article: https://randomnerdtutorials.com/solved-arduino-ide-esp32-esp8266-installation/
Regards,
Sara
I was facing this same error, and I tried to change ‘http’ to ‘https’ and it worked for me. Now it looks like this: https://arduino.esp8266.com/stable/package_esp8266com_index.json