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

User avatar
By sid12354
#93599 Arduino: 1.8.15 Hourly Build 2021/05/31 10:33 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:

ICACHE : 32768 - flash instruction cache

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

IRAM : 27341 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)

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

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

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

Sketch uses 266045 bytes (27%) of program storage space. Maximum is 958448 bytes.

Global variables use 28068 bytes (34%) of dynamic memory, leaving 53852 bytes for local variables. Maximum is 81920 bytes.

esptool.py v3.0

Serial port COM4

Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):

File "C:\Users\pc\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1/tools/upload.py", line 66, in <module>

esptool.main(cmdline)

File "C:/Users/pc/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/esptool\esptool.py", line 3552, in main

esp.connect(args.before, args.connect_attempts)

File "C:/Users/pc/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/esptool\esptool.py", line 529, 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

_

the selected serial port _

does not exist or your board is not connected



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


Sometimes the error says timed out waiting for packet header. What to do?
User avatar
By schufti
#93669 open the serial console window,
set baud to 74880
press reset on esp board
see if you get some readable output

then at least your setup is generally working (cables, drivers, ports)