-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Waiting for packet header #537
Comments
This is a generic USB upload error, but I can't tell what causes it. It might be a bad USB cable or bad USB hub etc... It is not related to anything software though. The uploader times out waiting for the right ESP response. |
I'm guessing the esp8266 is bad then. Both usb port and cable work. Thanks for looking. |
"Crystal is 26MHz" are we sure about that? Check the Arduino IDE uploader settings, whether there's some options about that. It might be 40MHz. |
How do i do that. Never done this kind of thing. |
Just tried on my laptop now. Got this . Variables and constants in RAM (global, static), used 44740 / 80192 bytes (55%) Then in blue bar it says Done uploading |
Try reducing the upload baudrate to 115200 otherwise it could be an usb to serial driver error. |
What about the crystal at 26 Mhz? |
I changed com port from 6 to 8 and got a different error. |
I'd love to tell you exactly what's wrong, but I haven't worked with Arduino for a long time now. Please check with the instructions here, and try to set everything as shown: |
I went to the wiki to setup esp8266 and it errors.
Arduino: 1.8.11 (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:1MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
Executable segment sizes:
IROM : 662864 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 29988 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 2352 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 6068 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 35280 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 701272 bytes (67%) of program storage space. Maximum is 1044464 bytes.
Global variables use 43700 bytes (53%) of dynamic memory, leaving 38220 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM5
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC:
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Traceback (most recent call last):
File "C:\Users\mine\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/upload.py", line 65, in
esptool.main(cmdline)
File "C:/Users/mine/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2916, in main
esp.change_baud(args.baud)
File "C:/Users/mine/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 104, in inner
return func(*args, **kwargs)
File "C:/Users/mine/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 705, in change_baud
self.command(self.ESP_CHANGE_BAUDRATE, struct.pack('<II', baud, second_arg))
File "C:/Users/mine/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 347, in command
p = self.read()
File "C:/Users/mine/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 292, in read
return next(self._slip_reader)
File "C:/Users/mine/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2045, 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
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: