Esp8266 error uploading: espcomm_upload_mem failed Executing command: exit status 2

Hi, I am working with arduino IOT CLOUD and the problem I'm having is that when I load any code onto my ESP8266, it always sends me an error. I change the port of my computer, I Check the device manager to see if it was being detected, I've even changed the board, but nothing happens. It's still the same.

What is strange about this problem is that the ESP does not turn on any lights when connecting or pressing the reset button. And I ruled out the possibility that the USB cable was the problem because the Arduino Cloud page detects the port and allows me the option to send the code, however after compiling it sends the error message.
This is what it sends me.

Flashing with command:C:/Users/fertt/.arduino-create/esp8266/esptool/2.5.0-3-20ed2b9/esptool.exe -vv -cd nodemcu -cb 115200 -cp COM6 -ca 0x00000 -cf C:/Users/fertt/AppData/Local/Temp/arduino-create-agent4112576869/PIN_SENSOR_mar04a.bin
esptool v0.4.13-1-gf80ae31 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
	setting board to nodemcu
	setting baudrate from 115200 to 115200
	setting port from COM1 to COM6
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
	setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Executing command: exit status 2

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