-->
Page 1 of 1

error: espcomm_upload_mem failed

PostPosted: Wed Jan 25, 2017 12:30 pm
by Mannyg
Seems that when trying to upload the code to the NodeMCU, it will give the following errors:

Arduino: 1.8.1 (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200, 4M (3M SPIFFS)"

Sketch uses 254211 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 34220 bytes (41%) of dynamic memory, leaving 47700 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

And I found why is doing this BUT don't know how to fix it since I am just a beginner in electronics.

Here is the scenario:

I have connected to the NodeMCU the following:

http://www.ebay.com/itm/5V-Two-2-Channe ... 3d08911ca3

and a IR Sensor:

http://www.ebay.com/itm/141975948572?_t ... EBIDX%3AIT

Both are connected to the NodeMCU without any other components such as capacitors or Resistors of any kind.

Seems that the problem MIGHT be the IR sensor, since when I unplug it (Only the output pin) , it WILL upload the code using the Arduino IDE just fine, BUT if it is connected, it will give the above errors and stop without uploading.

The Relay, since it requires 5v, it positive goes to pin VccIn in the NodeMCU since it is getting the 5v from the USB. Other than that, the remaining pins goes to where they are suppose to go: GND, D8,D7,D6, etc.

I am guessing, that there must be a voltage overload or noise or something that when the IR sensor OUT pin is connected to the NodeMCU. Again, I am just an amateur in electronics and not an expert.

Anyone has an idea of what is going on?

Thanks in advance!

Manny