Can't load sketch to ESP8266-12E

Hi All, I am facing a problem uploading sketches to ESP8266-12E. The problem is that only once the sketch is uploading to the ESP8266 but if I am loading any sketch again it is not happening. I have tried around 5 numbers of ESP8266-12E but I am getting the same problem. I have used NodeMCU and FTDI for programming the controller but results are same.I am tired of working on it to resolve the issue. So kindly advise how to resolve the problem and what would have been the reason for it?.

I tried with some basic codes such as 'Blink' and 'Button' from the examples other than my codes for testing but its uploading also getting failed.

The error message I am getting are mentioned below:
Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:

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

IRAM   : 28292   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 

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

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

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

Sketch uses 425168 bytes (40%) of program storage space. Maximum is 1044464 bytes.

Global variables use 30704 bytes (37%) of dynamic memory, leaving 51216 bytes for local variables. Maximum is 81920 bytes.

esptool.py v2.8

Serial port COM3

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

  File "C:\Users\SUNIL\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py", line 65, in <module>

    esptool.main(cmdline)

  File "C:/Users/SUNIL/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 2890, in main

    esp.connect(args.before)

  File "C:/Users/SUNIL/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 483, 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 content

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


Thanks in advance..
Sunil

so ESP-12F or NodeMcu?

hi @sunilpallikkara.
Recommendations.
Read: How to get the best out of this forum
Use </> tags to post sketcks or printouts;
Post your scheme. Can be done freehand;
What products are you using in your project?

RV mineirin

Hi, It is ESP8266-12E.

Thanks

Hi Mr.Ruilvian,
Thank you for youe advise and i have done as per your instruction.

Thank you very much.
Sunil

Hi @Juraj,
I am using 'ESP8266-12E' and I had used 'NODEMCU' only for programming ESP8266-12E.

Thanks,
Sunil

do you have the esp8266 on NodeMcu disabled?
is the esp-12F in flashing mode?

@Juraj,Yes I have disabled ESP8266 on NODEMCU at the time of programming ESP8266-12E Module.Please note that first time (when I use newly bought device) the code is uploading without any problem but it fails next time uploading any code.
Thanks

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