Error uploading to 8266 from Mac

Arduino: 1.8.15 (Mac OS X), Board: "ESPresso Lite 1.0, 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), dtr (aka nodemcu), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 231724 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26797 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 876 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25608 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 260893 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 27980 bytes (34%) of dynamic memory, leaving 53940 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port /dev/cu.usbserial-1420
Connecting......................................____Traceback (most recent call last):
File "/Users/gavinc/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/upload.py", line 66, in
esptool.main(cmdline)
File "/Users/gavinc/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/esptool/esptool.py", line 3552, in main
esp.connect(args.before, args.connect_attempts)
File "/Users/gavinc/Library/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
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

_

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

You haven't really asked a question or provided enough information to receive proper help.
First, check this post out: Get the best out of this forum
Then add to this post. People will need to see your code, pictures of how things are connected, and you need to describe your problem and ask a defined question.
Then you are much more likely to receive help from this forum.

Take a look at Installing ESP8266 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials

Hi Dozie,

Thank you but I still get the same error. I have attached a screen shot of the ports that I find when selecting the port. I’m using a Macbook Air.

Is this correct?

Kind regards,

Gavin

@kagtech01 The steps ( Installing ESP8266 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials )sent to you is what you need to solve the issue. Check:

  1. that you are not using a poor quality USB cable (use data USB cable) and that you are not using a USB bub. Avoid also USB 3.0.
  2. try it in another computer with Windows OS.

Hi Dozie,

Tried it on a windows machine with following error:

Arduino: 1.8.13 (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 : 239304 - code in flash (default or ICACHE_FLASH_ATTR)

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

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

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

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

Sketch uses 268449 bytes (28%) of program storage space. Maximum is 958448 bytes.

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

esptool.py v3.0

Serial port COM7

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

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

esptool.main(cmdline)

File "C:/Users/suppo/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/suppo/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

esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

What am I doing wrong? It seems so simple but not working.

Regards,

Gavin

Can you please provide pictures of your board and connection?

Hi,

Note pictures attached. Switch connecting IO1 with ground to trigger esp 01 into programming state..

Cheers,

Gavin

Remove anything wired to the board and use the steps sent earlier. You are probably using a bad USB cable, instead use a good quality high speed data cable. See:

  1. Timed out waiting for packet header esptool.FatalError: Failed to connect to ESP8266:
  2. Fatal Error Failed to connect to ESP8266: Timed out waiting for packet header (ESPTOOL-183) · Issue #490 · espressif/esptool · GitHub
  3. Esptool.fatalerror: Failed to connect esp8266: Timed out waiting for packet header - Robot Parts - RobotShop Community

image
Why is your board not seated in the adapter correctly? It's offset by one set of pins.

Quick inert for phot. Unit correctly seated when error was logged.

Hmmmmmmm
You miswired and powered the board. I'm not sure if you killed it or not. A more talented user might be able to tell you.

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