-->
Page 1 of 2

Unable to program ESP12e NodeMCU in Arduino IDE

PostPosted: Tue Jul 18, 2017 4:08 pm
by Jaimesg
Hi, i've been trying to load anything on the ESP module without success. The module is a LoLIN NodeMCU v3 ESP12E with a CH340g usb to serial converter.

Error while uploading the sketch:
warning: espcomm_sync failed
error: espcomm_open failed


While uploading the sketch the blue LED blinks a couple of long times and then throws the error

Things done:
- The driver is installed and working, but i cannot see anything on the serial monitor of Arduino.
- Selecting the correct board (NodeMCU V1) on Arduino
- Selecting the correct COM port

Things that I tried:
- Last Arduino version and older ones (1.6.5)
- Last esp8266 core libraries and older ones (2.0.0)
- Different usb cables

What can it be?

Thank you!

Re: Unable to program ESP12e NodeMCU in Arduino IDE

PostPosted: Sat Jul 22, 2017 1:23 pm
by Millstone
Some times this can happen if the COM-PORT is used by another software. But restart, or deleting the corresponding handles would have solved the problem.

Good luck

Millstone

Re: Unable to program ESP12e NodeMCU in Arduino IDE

PostPosted: Sat Jul 22, 2017 1:30 pm
by rudy
What baud rate are you using? I use 115200. Sometimes have problems if I go faster.

Re: Unable to program ESP12e NodeMCU in Arduino IDE

PostPosted: Sat Jul 22, 2017 6:46 pm
by QuickFix
As said above: use a slower baud-rate to start with (eg. 115200 baud) and make sure no other serial (terminal) programs are using that COM-port.
In your Arduino IDE, select "Tools" -> "Board: NodeMCU v?.?" before uploading (or use the old manual flash-method using the FLASH- and RST-buttons on the board, though the auto-flash/reset mode should work, if you selected the correct board). :idea:
Also make sure, the correct COM-port is selected in "Tools" -> "Port: COM???"