Packet Header Error When Connecting To ESP8266 Module
Posted: Fri May 21, 2021 3:38 pm
I've recently bough a ESP8266 Wi-Fi Module from DigiKey. I was able to set it up following this article. It went well, I got the IP and can ping it from the laptop. I've ended switching baud rate back to 115200.
My goal is to connect to the Arduino remotely to program/read data from it OTA. I've posted the images of my setup here.
To this end I'm trying to set up an ESP Server on the ESP8266 module following the example on the over here. I've installed additional boards as per instructions, but when I upload the code I keep receiving an error about packet header.
I suspect the issues comes from picking the wrong board in the menu. The manufacturer on the chip I have is SparkFun Electronics, I've tried all 3 listing from the menu the errors persists.
I appreciate the help.
My goal is to connect to the Arduino remotely to program/read data from it OTA. I've posted the images of my setup here.
To this end I'm trying to set up an ESP Server on the ESP8266 module following the example on the over here. I've installed additional boards as per instructions, but when I upload the code I keep receiving an error about packet header.
Code: Select all
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 248724 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26797 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1504 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 1052 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25712 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 278077 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28268 bytes (34%) of dynamic memory, leaving 53652 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port /dev/ttyACM0
Connecting........_____....._____....._____....._____....._____....._____....._____
Traceback (most recent call last):
File "/home/aprenewables/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/upload.py", line 66, in <module>
esptool.main(cmdline)
File "/home/aprenewables/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool/esptool.py", line 3552, in main
esp.connect(args.before, args.connect_attempts)
File "/home/aprenewables/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/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
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_python3.8.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/home/aprenewables/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/upload.py", line 66, in <module>
esptool.main(cmdline)
File "/home/aprenewables/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool/esptool.py", line 3552, in main
esp.connect(args.before, args.connect_attempts)
File "/home/aprenewables/.arduino15/packages/esp8266/hardware/esp8266/3.0.0/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
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
I suspect the issues comes from picking the wrong board in the menu. The manufacturer on the chip I have is SparkFun Electronics, I've tried all 3 listing from the menu the errors persists.
I appreciate the help.