0

I am using ESP8266-01 with Arduino Uno... I am able to compile example code of ESP8266 with Generic ESP8266 module board with arduino ide but unable to upload it to Uno...., it is giving an error: espcomm_upload_mem failed while uploading the code to Uno

3
  • Note that you have two programmable processors: The ESP8266 and the Uno. Is the example you mentioned intended to be run on the Uno (connected to a ESP8266 with standard AT firmware) or on the ESP8266? Commented Oct 13, 2016 at 12:56
  • If he example is intended to be run on the Uno, you should follow Richard210363's suggestion: Set the board to the Uno, since that's what you're coding for and uploading to. Commented Oct 13, 2016 at 12:57
  • If the example is intended to be run on the ESP8266, then your wiring is incorrect, because to upload to the ESP8266, you need to connect it directly to your serial adapter. (Which you will need to read up on, to prevent frying your ESP). Commented Oct 13, 2016 at 12:58

2 Answers 2

0

How the code is compiled is based on the board you have set in the Arduino IDE.

Before you compile and upload, have you switched the IDE to use an Uno board?

In the Arduino IDE try: Tools | Board | Arduino Uno

Sign up to request clarification or add additional context in comments.

Comments

0

Esp8266 generic example will not run on Arduino Uno. Possibly your device is selected as Esp8266 from Device Manager as gurus said. What you need to run Uno with Esp is writing Esp8266 serial controller to Uno. Here is the sample. Good luck.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.