I have an Arduino Uno and ESP8266-01 Wifi module with me currently. So I'm going to use ESP8266 to connect to the MQTT broker to allow me publish data to other devices. However, I have a problem with uploading my sketch due to the following error:

error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

I uploaded the example sketch WIFIScan provided by Arduino IDE to test ESP8266 whether working or not, so the code is not a problem. This is how I connect ESP8266 to the laptop. enter image description here

The Arduino Uno is connected to my laptop through USB port.

RST to GND holds esp8266 in reset

  • So RST pin on ESP8266 should connect to ? Which pin on Arduino? – Conard 17 hours ago
  • 1
    let reset unconnected – Juraj 17 hours ago
  • @Conard, did it help? – Juraj 2 hours ago

There are so many issues when working with the ESP8266, try unplugging the Arduino, replugging and immediately reuploading. Also, make sure that you have the ESP8266 as the board selected and that you are using the right port.

Hope this works!

New contributor
Rohan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.