Welcome to the forum!
Since you are new here, you may benefit for having a read of the following guidelines:
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/
Please note that it is not usually a good idea to post code or error messages as a screenshot. If I am having difficulty reading the text in that image, then quite possibly others might be struggling as well.
Could you copy/paste the error output text into your post and enclose in CODE tags - look for the <CODE/> icon in the editor. Thank you.
Regarding your actual problem, it may be that you need to install the correct driver for the serial UART chip onboard your ESP8266, but there are also other possibilities, such as a bad USB cable. If you can post a photo with all the chip markings clearly visible it might help us to determine which UART chip is onboard the Devkit board that you have.
Hi @sr123 ,
please read @BitSeeker 's post and follow the advices given ...
Before you post the error messages you should open the Arduino IDE File/Preferences menu, set "Compiler warnings" to "All" and accept this choice with "Ok".
Then recompile your sketch again.
Now you should see much more text in the message window!
Copy this text as stated in @BitSeeker's post.
ec2021
this was my error
Done uploading
Variables and constants in RAM (global, static), used 26226 / 80192 bytes (32%)
| SEGMENT BYTES DESCRIPTION
| DATA 1504 initialized variables
| RODATA 1020 constants
| BSS 25704 zeroed variables
Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59747 / 65536 bytes (91%)
| SEGMENT BYTES DESCRIPTION
| ICACHE 32768 reserved space for flash instruction cache
| IRAM 26979 code in IRAM
Code in flash (default, ICACHE_FLASH_ATTR), used 239200 / 1048576 bytes (22%)
| SEGMENT BYTES DESCRIPTION
| IROM 239200 code in flash
esptool.py v3.0
Serial port COM3
Connecting...
A fatal esptool.py error occurred: Write timeout
Which IDE are you using?
This is how it looks like if you use code tags:
Done uploading
Variables and constants in RAM (global, static), used 26226 / 80192 bytes (32%)
| SEGMENT BYTES DESCRIPTION
| DATA 1504 initialized variables
| RODATA 1020 constants
| BSS 25704 zeroed variables
Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59747 / 65536 bytes (91%)
| SEGMENT BYTES DESCRIPTION
| ICACHE 32768 reserved space for flash instruction cache
| IRAM 26979 code in IRAM
Code in flash (default, ICACHE_FLASH_ATTR), used 239200 / 1048576 bytes (22%)
| SEGMENT BYTES DESCRIPTION
| IROM 239200 code in flash
esptool.py v3.0
Serial port COM3
Connecting...
A fatal esptool.py error occurred: Write timeout
The reason for applying code tags is a much better readability.
