{"id":103655,"date":"2021-05-20T11:01:38","date_gmt":"2021-05-20T11:01:38","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=103655"},"modified":"2024-02-28T11:12:06","modified_gmt":"2024-02-28T11:12:06","slug":"installing-esp8266-nodemcu-arduino-ide-2-0","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/installing-esp8266-nodemcu-arduino-ide-2-0\/","title":{"rendered":"Installing ESP8266 NodeMCU Board in Arduino IDE 2 (Windows, Mac OS X, Linux)"},"content":{"rendered":"\n<p>There is a new Arduino IDE\u2014Arduino IDE 2. In this tutorial, you&#8217;ll learn how to install the ESP8266 boards in Arduino IDE 2.X and upload code to the board. This tutorial is compatible with Windows, Mac OS X, and Linux operating systems.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Installing-Programming-ESP8266-Board-Arduino-2-.0.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Installing Programming ESP8266 NodeMCU Board in Arduino 2.0 Windows Mac OS X Linux\" class=\"wp-image-103683\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Installing-Programming-ESP8266-Board-Arduino-2-.0.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Installing-Programming-ESP8266-Board-Arduino-2-.0.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Installing-Programming-ESP8266-Board-Arduino-2-.0.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Installing-Programming-ESP8266-Board-Arduino-2-.0.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n<p>According to the Arduino website: &#8220;<em>The Arduino IDE 2.0 is an improvement of the classic IDE, with increased performance, improved user interface and many new features, such as autocompletion, a built-in debugger and syncing sketches with Arduino Cloud<\/em>&#8220;.<\/p>\n\n\n\n<p>If you want to install the ESP8266 boards on the &#8220;classic&#8221; Arduino IDE, follow the next tutorial instead:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/how-to-install-esp8266-board-arduino-ide\/\">Installing the ESP8266 Board in Arduino IDE (Windows, Mac OS X, Linux)<\/a><\/li>\n<\/ul>\n\n\n\n<p>If you prefer programming the ESP8266 using VS Code + PlatformIO, go to the following tutorial:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/vs-code-platformio-ide-esp32-esp8266-arduino\/\">Getting Started with VS Code and PlatformIO IDE for ESP32 and ESP8266 (Windows, Mac OS X, Linux Ubuntu)<\/a><\/li>\n<\/ul>\n\n\n\n<p>You might also like reading the ESP32 Guide: <a href=\"https:\/\/randomnerdtutorials.com\/installing-esp32-arduino-ide-2-0\/\">Installing ESP32 Board in Arduino IDE 2.0 (Windows, Mac OS X, Linux)<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites: Arduino IDE 2 Installed<\/h2>\n\n\n\n<p>Before proceeding make sure you have <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/getting-started-with-ide-v2\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino IDE 2<\/a> installed on your computer.<\/p>\n\n\n\n<p>Go to the <a href=\"https:\/\/www.arduino.cc\/en\/software#experimental-software\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino website and download the version<\/a> for your operating system.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"386\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-ide-2-software-install-download.png?resize=750%2C386&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 Software Install Download\" class=\"wp-image-148598\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-ide-2-software-install-download.png?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-ide-2-software-install-download.png?resize=300%2C154&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Windows<\/strong>: run the file downloaded and follow the instructions in the installation guide.<\/li>\n\n\n\n<li><strong>Mac OS X<\/strong>: copy the downloaded file into your application folder.<\/li>\n\n\n\n<li><strong>Linux<\/strong>: extract the downloaded file, and open the <span class=\"rnthl rntliteral\">arduino-ide<\/span> file that will launch the IDE.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"499\" height=\"388\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-2-0-installation-successful.png?resize=499%2C388&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2.0 installation successful Windows Mac OS X Linux\" class=\"wp-image-103670\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-2-0-installation-successful.png?w=499&amp;quality=100&amp;strip=all&amp;ssl=1 499w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-2-0-installation-successful.png?resize=300%2C233&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/figure><\/div>\n\n\n<p>If you have doubts, you can go to the <a href=\"https:\/\/www.arduino.cc\/en\/Tutorial\/getting-started-with-ide-v2\/ide-v2-downloading-and-installing\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino Installation Guide<\/a>.<\/p>\n\n\n\n<p><strong>Do you need an ESP8266 board? <\/strong>You can <a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/esp8266-esp-12e-nodemcu-wi-fi-development-board\/\" target=\"_blank\">buy it here<\/a>.<\/p>\n\n\n\n<p class=\"rntbox rntclblue\">Recommended reading: <a href=\"https:\/\/makeradvisor.com\/best-esp8266-wi-fi-development-board\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best ESP8266 Boards Comparison<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install ESP8266 NodeMCU Add-on in Arduino IDE 2<\/h2>\n\n\n\n<p>To install the ESP8266 board in your Arduino IDE 2, follow these next instructions:<\/p>\n\n\n\n<p><strong>1. <\/strong>In the Arduino IDE 2, go to <strong>File <\/strong>&gt; <strong>Preferences<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"586\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-ide-2-preferences-menu.png?resize=666%2C586&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 File, Preferences\" class=\"wp-image-148600\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-ide-2-preferences-menu.png?w=666&amp;quality=100&amp;strip=all&amp;ssl=1 666w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-ide-2-preferences-menu.png?resize=300%2C264&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/figure><\/div>\n\n\n<p><strong>2.<\/strong> Copy and paste the following line to the <strong>Additional Boards Manager<\/strong> URLs field.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"501\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-IDE-2-preferences-additional-boards-manager.png?resize=750%2C501&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino 2 - Additional Boards URL\" class=\"wp-image-148599\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-IDE-2-preferences-additional-boards-manager.png?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Arduino-IDE-2-preferences-additional-boards-manager.png?resize=300%2C200&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p><strong>Note:<\/strong> if you already have the ESP32 boards URL, you can separate the URLs with a comma, as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json, https:\/\/raw.githubusercontent.com\/espressif\/arduino-esp32\/gh-pages\/package_esp32_index.json<\/code><\/pre>\n\n\n\n<p>3. Open the Boards Manager. You can go to <strong>Tools <\/strong>&gt; <strong>Board <\/strong>&gt; <strong>Boards Manager&#8230;<\/strong> or you can simply click the <strong>Boards Manager <\/strong>icon in the left-side corner.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"586\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/arduino-ide-2-boards-manager.png?resize=799%2C586&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 - Boards Manager\" class=\"wp-image-148602\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/arduino-ide-2-boards-manager.png?w=799&amp;quality=100&amp;strip=all&amp;ssl=1 799w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/arduino-ide-2-boards-manager.png?resize=300%2C220&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/arduino-ide-2-boards-manager.png?resize=768%2C563&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/figure><\/div>\n\n\n<p>4. Search for <strong>ESP8266 <\/strong>and press the install button for <strong>esp8266 by ESP8266 Community<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"586\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/install-esp8266-boards-arduino-ide-2.png?resize=769%2C586&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install ESP8266 NodeMCU boards Arduino IDE 2\" class=\"wp-image-148604\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/install-esp8266-boards-arduino-ide-2.png?w=769&amp;quality=100&amp;strip=all&amp;ssl=1 769w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/install-esp8266-boards-arduino-ide-2.png?resize=300%2C229&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 769px) 100vw, 769px\" \/><\/figure><\/div>\n\n\n<p>That&#8217;s it. It should be installed after a few seconds.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the Installation<\/h2>\n\n\n\n<p>To test the ESP8266 add-on installation, we&#8217;ll upload a simple code that blinks the on-board LED (GPIO 2).<\/p>\n\n\n\n<p>Copy the following code to your Arduino IDE:<\/p>\n\n\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\/*********\n  Rui Santos\n  Complete project details at https:\/\/RandomNerdTutorials.com\/vs-code-platformio-ide-esp32-esp8266-arduino\/\n*********\/\n\n#include &lt;Arduino.h&gt;\n\n#define LED 2\n\nvoid setup() {\n  \/\/ put your setup code here, to run once:\n  Serial.begin(115200);\n  pinMode(LED, OUTPUT);\n}\n\nvoid loop() {\n  \/\/ put your main code here, to run repeatedly:\n  digitalWrite(LED, HIGH);\n  Serial.println(&quot;LED is on&quot;);\n  delay(1000);\n  digitalWrite(LED, LOW);\n  Serial.println(&quot;LED is off&quot;);\n  delay(1000);\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/raw\/master\/Projects\/ESP\/ESP_Blink_VS_Code.ino\" target=\"_blank\">View raw code<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Uploading the Sketch<\/h3>\n\n\n\n<p>Select your board before uploading the code. On the top drop-down menu, click on &#8220;<strong>Select other board and port&#8230;<\/strong>&#8220;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"193\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/arduino-ide-2-select-board.png?resize=750%2C193&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 - select board\" class=\"wp-image-148606\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/arduino-ide-2-select-board.png?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/arduino-ide-2-select-board.png?resize=300%2C77&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>A new window, as shown below, will open. Search for your ESP8266 board model<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"504\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/select-esp8266-board-arduino-ide-2.png?resize=699%2C504&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 select board model and COM port\" class=\"wp-image-148607\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/select-esp8266-board-arduino-ide-2.png?w=699&amp;quality=100&amp;strip=all&amp;ssl=1 699w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/select-esp8266-board-arduino-ide-2.png?resize=300%2C216&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/figure><\/div>\n\n\n<p>Select the ESP8266 board model you&#8217;re using, and the COM port. In our example, we&#8217;re using the NodeMCU 1.0 board. Click <strong>OK<\/strong> when you&#8217;re done.<\/p>\n\n\n\n<p>Now, you just need to click on the <strong>Upload <\/strong>button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"36\" height=\"39\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/arduino-ide-2-upload-button.png?resize=36%2C39&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 Upload Button\" class=\"wp-image-146269\"\/><\/figure><\/div>\n\n\n<p>After a few seconds, the upload should be complete.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"669\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/esp8266-arduino-ide-2-upload-code-complete.png?resize=666%2C669&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU Arduino IDE 2.0 Upload Successful Programming demonstration\" class=\"wp-image-148608\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/esp8266-arduino-ide-2-upload-code-complete.png?w=666&amp;quality=100&amp;strip=all&amp;ssl=1 666w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/esp8266-arduino-ide-2-upload-code-complete.png?resize=300%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/esp8266-arduino-ide-2-upload-code-complete.png?resize=150%2C150&amp;quality=100&amp;strip=all&amp;ssl=1 150w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/figure><\/div>\n\n\n<p>The ESP8266 on-board LED should be blinking every second.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/08\/ESP8266-blinking-LED.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU board running blink LED example code Arduino IDE 2.0\" class=\"wp-image-88063\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/08\/ESP8266-blinking-LED.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/08\/ESP8266-blinking-LED.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Serial Monitor<\/h3>\n\n\n\n<p>You can click on the Serial Monitor icon to open the Serial Monitor tab.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"695\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/esp8266-arduino-ide-2-testing-serial-monitor.png?resize=666%2C695&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Open Arduino IDE Serial Monitor Arduino IDE 2.0 ESP8266 NodeMCU\" class=\"wp-image-148610\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/esp8266-arduino-ide-2-testing-serial-monitor.png?w=666&amp;quality=100&amp;strip=all&amp;ssl=1 666w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/esp8266-arduino-ide-2-testing-serial-monitor.png?resize=287%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 287w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/figure><\/div>\n\n\n<p>That&#8217;s it! You&#8217;ve installed the ESP8266 Boards successfully in Arduino IDE 2.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Filesystem Uploader Plugin (LittleFS)<\/h2>\n\n\n\n<p>If you want to add support to upload files to the ESP8266 LittleFS filesystem, you can follow the next tutorial:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/arduino-ide-2-install-esp8266-littlefs\/\">Arduino IDE 2: Install ESP8266 NodeMCU LittleFS Uploader (Upload Files to the Filesystem)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting <\/h2>\n\n\n\n<p><strong>1)<\/strong> If you try to upload a new sketch to your ESP8266 and you get this error message &#8220;<em>esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header<\/em>&#8220;. It means that your ESP8266 is not in flashing\/uploading mode.<\/p>\n\n\n\n<p>Having the right board name and COM port selected, follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Hold-down the <strong>BOOT\/FLASH<\/strong> button in your ESP8266 development board<\/li>\n\n\n\n<li>Press the <strong>Upload<\/strong> button in the Arduino IDE to upload your sketch<\/li>\n\n\n\n<li>When you see the\u00a0\u00a0&#8220;<em>Connecting&#8230;.<\/em>&#8221; message in your Arduino IDE, release the finger from the <strong>BOOT\/FLASH<\/strong>\u00a0button<\/li>\n\n\n\n<li>After that, you should see the &#8220;<em>Done uploading<\/em>&#8221; message <\/li>\n<\/ul>\n\n\n\n<p>Your ESP8266 should have the new sketch running. Press the <strong>ENABLE\/RESET<\/strong> button to restart the ESP8266 and run the new uploaded sketch. <\/p>\n\n\n\n<p><strong>2)<\/strong> If you get the error &#8220;COM Port not found\/not available&#8221;, you might need to install the CP210x Drivers:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/install-esp32-esp8266-usb-drivers-cp210x-windows\/\">Install USB Drivers \u2013 CP210x USB to UART Bridge (Windows PC)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/install-esp32-esp8266-usb-drivers-cp210x-mac-os\/\">Install USB Drivers \u2013 CP210x USB to UART Bridge (Mac OS X)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>This is a quick guide that shows how to prepare Arduino IDE 2 for the ESP8266 Boards on a Windows PC, Mac OS X, or Linux computer.<\/p>\n\n\n\n<p>Next, you might want to read:&nbsp;<a href=\"https:\/\/randomnerdtutorials.com\/getting-started-with-esp8266-wifi-transceiver-review\/\">Getting started with ESP8266<\/a> or learn more about the ESP8266 board with our resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/build-web-servers-esp32-esp8266-ebook\/\">Build ESP8266 Web Servers with Arduino IDE (eBook)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/home-automation-using-esp8266\/\">Home Automation using ESP8266<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/projects-esp8266\/\">More ESP8266 Projects and Tutorials\u2026<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There is a new Arduino IDE\u2014Arduino IDE 2. In this tutorial, you&#8217;ll learn how to install the ESP8266 boards in Arduino IDE 2.X and upload code to the board. This &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Installing ESP8266 NodeMCU Board in Arduino IDE 2 (Windows, Mac OS X, Linux)\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/installing-esp8266-nodemcu-arduino-ide-2-0\/#more-103655\" aria-label=\"Read more about Installing ESP8266 NodeMCU Board in Arduino IDE 2 (Windows, Mac OS X, Linux)\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":103683,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[214,265,246,240,300,264],"tags":[],"class_list":["post-103655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp8266","category-esp8266-project","category-esp8266-arduino-ide","category-esp8266-projects","category-0-esp8266","category-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/Installing-Programming-ESP8266-Board-Arduino-2-.0.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/103655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=103655"}],"version-history":[{"count":14,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/103655\/revisions"}],"predecessor-version":[{"id":149306,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/103655\/revisions\/149306"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/103683"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=103655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=103655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=103655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}