esptool.FatalError

Does anyone know what's the issue here?

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E 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, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:

ICACHE : 32768           - flash instruction cache 

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

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

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

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

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

Sketch uses 319293 bytes (30%) of program storage space. Maximum is 1044464 bytes.

Global variables use 29700 bytes (36%) of dynamic memory, leaving 52220 bytes for local variables. Maximum is 81920 bytes.

esptool.py v3.0

Serial port COM6

Connecting....

Chip is ESP8266EX

Features: WiFi

Crystal is 26MHz

MAC: e8:db:84:98:ac:d9

Uploading stub...

Running stub...

Stub running...

Configuring flash size...

Auto-detected Flash size: 4MB

Compressed 323440 bytes to 234839...

Writing at 0x00000000... (6 %)

Writing at 0x00004000... (13 %)

Writing at 0x00008000... (20 %)

Traceback (most recent call last):

  File "C:\Users\User\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2/tools/upload.py", line 66, in <module>

    esptool.main(cmdline)

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 3604, in main

    operation_func(esp, args)

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 2987, in write_flash

    esp.flash_defl_block(block, seq, timeout=DEFAULT_TIMEOUT * ratio * 2)

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 113, in inner

    return func(*args, **kwargs)

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 762, in flash_defl_block

    self.ESP_FLASH_DEFL_DATA, struct.pack('<IIII', len(data), seq, 0, 0) + data, self.checksum(data), timeout=timeout)

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 413, in check_command

    val, data = self.command(op, data, chk, timeout=timeout)

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 386, in command

    p = self.read()

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 331, in read

    return next(self._slip_reader)

  File "C:/Users/User/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 2636, in slip_reader

    raise FatalError("Timed out waiting for packet %s" % waiting_for)

esptool.FatalError: Timed out waiting for packet header

esptool.FatalError: Timed out waiting for packet header

Yes you posted in the wrong section. Installation and troubleshooting is NOT for your own projects but for getting the system working.
I have moved your post to a more appropriate section. Please take more care when posting in future.

Just a wild guess - A bug in your code?

Im sorry. Next time Ill check

It appears there is a memory block issue of sending data to the ESP. My guess, the ESP's memory is not right.

How to correct this?

Are you able to de-solder the current ram chip from your ESP module and replace it with a new one?

Did you happen to test another ESP32? From a different manufacturer?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.