Hey i have a problem with esp

hey I've been trying to set up my esp 8266 it's not working
I've updated the driver and added esp to board manager
is it the hardware or the software?
this is the error

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

IRAM : 26793 / 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 260889 bytes (27%) of program storage space. Maximum is 958448 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 COM4

Connecting....

Chip is ESP8266EX

Features: WiFi

Crystal is 26MHz

MAC: ac:0b:fb:c3:31:7e

Uploading stub...

Running stub...

Stub running...

Configuring flash size...

Traceback (most recent call last):

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

esptool.main(cmdline)

File "C:/Users/selva/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 3599, in main

detect_flash_size(esp, args)

File "C:/Users/selva/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 2848, in detect_flash_size

flash_id = esp.flash_id()

File "C:/Users/selva/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 688, in flash_id

return self.run_spiflash_command(SPIFLASH_RDID, b"", 24)

File "C:/Users/selva/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 948, in run_spiflash_command

old_spi_usr = self.read_reg(SPI_USR_REG)

File "C:/Users/selva/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 562, in read_reg

val, data = self.command(self.ESP_READ_REG, struct.pack('<I', addr))

File "C:/Users/selva/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 386, in command

p = self.read()

File "C:/Users/selva/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 331, in read

return next(self._slip_reader)

File "C:/Users/selva/AppData/Local/Arduino15/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

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

Your post was MOVED to its current location as it is more suitable.

hi wade5000,

what exact type of ESP8266 are you using?

did you check if your ESP8266 uses COM-Port 4 in the device-manager?

If you open the serial monitor adjust the baudrate to 74880 and press the reset-button
what is printed in the serial monitor?

You should enable compiler-warnings all
and show verbose output during compilation and upload
and then post the messages as a code-section:
click on the </>-Button
then paste messages

best regards Stefan

I'm using esp 8266 generic from Amica
yes I have checked it is com 4 in the device manager

this it what it shows in serial moniter

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

That doesn't tell us anything. Is it an ESP8266-01, Wemos D1 Mini or NodeMCU?

If it is the 8266-01, then draw a schematic showing how it's connected. (No useless Fritzing pictures, please).

not sure but i know it's not a wemos di mini I think it is nodemcu as it is written on the board

hey Stefan I'm not able to post the error code after enabling compiler-warnings all and show verbose output during compilation and upload as it is too long

This almost always means that you are using the wrong Serial port or a bad USB cable.

There should be some lines like this:

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 3584, room 16 
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld

If disable show verbose output during compilation but keep show verbose output during upload

it should show something similar to this

Executable segment sizes:
IROM   : 233432          - code in flash         (default or ICACHE_FLASH_ATTR) 
IRAM   : 27324   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 
DATA   : 1248  )         - initialized variables (global, static) in RAM/HEAP 
RODATA : 720   ) / 81920 - constants             (global, static) in RAM/HEAP 
BSS    : 24960 )         - zeroed variables      (global, static) in RAM/HEAP 
Sketch uses 262724 bytes (25%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26928 bytes (32%) of dynamic memory, leaving 54992 bytes for local variables. Maximum is 81920 bytes.
F:\MyPortable-PRgs\arduino-1.8.16-newb\portable\packages\esp8266\tools\python3\3.7.2-post1/python3 F:\MyPortable-PRgs\arduino-1.8.16-newb\portable\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py --chip esp8266 --port COM7 --baud 921600 --before default_reset --after hard_reset write_flash 0x0 C:\Users\dipl-\AppData\Local\Temp\arduino_build_963871/Simple-Demo.ino.bin 
esptool.py v2.8
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 2c:3a:e8:22:21:f8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 266880 bytes to 196664...
Wrote 266880 bytes (196664 compressed) at 0x00000000 in 4.8 seconds (effective 443.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

best regards Stefan

Hi,
Can you please post some clear pictures of your ESP board please?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

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