title: Connection error in ESP 8266 module (does not exist or your board is not connected)
body: <p>I get the following error which I try to upload the code. I tried changing the upload speed and changing cable, nothing worked. Thanks in advance. cheers !!</p>
  <p>Arduino: 1.8.13 (Windows 10), Board: &quot;NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 921600&quot;</p>
  <p>Executable segment sizes:</p>
  <p>IROM   : 248548          - code in flash         (default or ICACHE_FLASH_ATTR)</p>
  <p>IRAM   : 27928   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)</p>
  <p>DATA   : 1312  )         - initialized variables (global, static) in RAM/HEAP</p>
  <p>RODATA : 2220  ) / 81920 - constants             (global, static) in RAM/HEAP</p>
  <p>BSS    : 25568 )         - zeroed variables      (global, static) in RAM/HEAP</p>
  <p>Sketch uses 280008 bytes (26%) of program storage space. Maximum is 1044464 bytes.</p>
  <p>Global variables use 29100 bytes (35%) of dynamic memory, leaving 52820 bytes for local variables. Maximum is 81920 bytes.</p>
  <p>esptool.py v2.8</p>
  <p>Serial port COM6</p>
  <p>Connecting........</p>
  <p>Traceback (most recent call last):</p>
  <p>File &quot;C:\Users\Chathura\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py&quot;, line 65, in </p>
  <pre><code>esptool.main(cmdline)
  </code></pre>
  <p>File &quot;C:/Users/Chathura/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py&quot;, line 2890, in main</p>
  <pre><code>esp.connect(args.before)
  </code></pre>
  <p>File &quot;C:/Users/Chathura/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py&quot;, line 478, in connect</p>
  <pre><code>last_error = self._connect_attempt(mode=mode, esp32r0_delay=True)
  </code></pre>
  <p>File &quot;C:/Users/Chathura/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py&quot;, line 455, in _connect_attempt</p>
  <pre><code>self.sync()
  </code></pre>
  <p>File &quot;C:/Users/Chathura/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py&quot;, line 394, in sync</p>
  <pre><code>timeout=SYNC_TIMEOUT)
  </code></pre>
  <p>File &quot;C:/Users/Chathura/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py&quot;, line 337, in command</p>
  <pre><code>self.write(pkt)
  </code></pre>
  <p>File &quot;C:/Users/Chathura/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py&quot;, line 300, in write</p>
  <pre><code>self._port.write(buf)
  </code></pre>
  <p>File &quot;C:/Users/Chathura/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/pyserial\serial\serialwin32.py&quot;, line 323, in write</p>
  <pre><code>raise writeTimeoutError
  </code></pre>
  <p>serial.serialutil.SerialTimeoutException: Write timeout</p>
  <p>the selected serial port serial.serialutil.SerialTimeoutException: Write timeout</p>
  <p>does not exist or your board is not connected</p>
  <p>This report would have more information with
  &quot;Show verbose output during compilation&quot;
  option enabled in File -&gt; Preferences.</p>