So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By agassparkle
#87041 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
Quote
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 <module>
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.
User avatar
By wefbee
#87110 I'm having this issue with an ESP32 DevKitC_V4 board. Loads fine and then all of a sudden get this message:
Flashing binaries to serial port COM27 (app at offset 0x10000)...
esptool.py v2.1
Serial<id=0x24dcfec, open=True>(port='COM27', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)
Connecting......................................_____.....
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

Sometimes power cycling board fixes problem other times does not. I can see ESP32 replying using scope on TXD0 but computer is not seeing response.
wefbee
User avatar
By DuncanWilliam
#87515
agassparkle wrote: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
Quote
Executable segment sizes:

Exactly the same as mine, wasted 3 days trying to fix. But still not working
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 <module>
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.