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?