ESP8266: Timed out waiting for packet header

Hello,

Today i bought 2 NodeMCU ESP8266 and managed to get the first one working without any problems.

But when i try to upload something to the other board i get this

Executable segment sizes:

IROM : 228492 - code in flash (default or ICACHE_FLASH_ATTR)

IRAM : 26792 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs…)

DATA : 1248 ) - initialized variables (global, static) in RAM/HEAP

RODATA : 688 ) / 81920 - constants (global, static) in RAM/HEAP

BSS : 24880 ) - zeroed variables (global, static) in RAM/HEAP

Sketch uses 257220 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26816 bytes (32%) of dynamic memory, leaving 55104 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM4
Connecting……____Traceback (most recent call last):
File “C:\Users\agas\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.1/tools/upload.py”, line 65, in
esptool.main(cmdline)
File “C:/Users/agas/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py”, line 2890, in main
esp.connect(args.before)
File “C:/Users/agas/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.7.1/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

_

And I havent changed anything. After that I deleted the esp8266 package and reinstalleed 2.6.0 just to see if anything changes but still doesnt work.

The COM is correct. Board is selected from tools>boards.

Can the unit be damaged ?? and i see LED flashing when it tryies to connect.

agassparkle: Hello, Can the unit be damaged ?? and i see LED flashing when it tryies to connect.

Yes. I have a couple of ESP8266 boards where I somehow fried the UART. If the same code uploads fine on another board, then it's likely a bad UART.

I have EXACTLY same problem. LED is blinking while trying to connect and getting same error. On ESP8266 with board version 2.7.2 (latest as for today) And I can't find any way to solve it out!

Anyone?

First, don't hiiijack an old thread. Start a new one. Particularly because I doubt you have the EXACT same issue.

SteveMann: First, don't hiiijack an old thread. Start a new one. Particularly because I doubt you have the EXACT same issue.

My apologies if I did wrong according to the terms here in this forum. But what incentive do I have to say I have EXACT same problem if I don't have? It makes no sense. I experienced the exact same problem, the build-in LED was flashing while trying to connect, I had the same Fatal error exactly, literally exactly as the thread creator experienced and that was also exactly the reason I commented an old thread, I believe it is for the community help to see if people experience similar issues and perhaps to gather the solution same place. I didn't mean to hijack the thread. Anyway, thank you for your attention!

Ran

The OP said that he had two Node MCU boards, one would flash, the other wouldn't.

The main reason for starting a new thread is that many people won't bother to read a thread that's a few week or more stale.

The main reason that you can't flash an ESP board is that you have the wrong port selected, or the port is already in use by another program (like a terminal program), or even a bad cable or computer USB port. In rare cases you could have a bad UART.