-->
Page 1 of 3

Help starting with Arduino Software (IDE) with ESP-12

PostPosted: Tue Aug 30, 2016 6:33 am
by AusUser
Hi there, this is my first post and I'm keen to get my new ESP-12 working with Adruino IDE to do some basic projects with sensors and the on-board webserver.

I've followed the "How to get started with ESP8266 and Arduino IDE" and I have some communication issue with it. So my first questions should I flash the firmware? And what should i flash it with.

Thanks in advance.

Re: Help starting with Arduino Software (IDE) with ESP-12

PostPosted: Tue Aug 30, 2016 11:29 am
by Orcanbull
HI AusUser,

Did you use the Correct pin configurations?, GPIO 0 low, GPIO15 LOW, GPOI2 HIGH and the RESET to be pressed before the program is flashed,

Or did you Select the ESP board in the Arduino IDE,
What error are you getting?

Re: Help starting with Arduino Software (IDE) with ESP-12

PostPosted: Thu Sep 01, 2016 4:49 am
by AusUser
Orcanbull wrote:HI AusUser,

Did you use the Correct pin configurations?, GPIO 0 low, GPIO15 LOW, GPOI2 HIGH and the RESET to be pressed before the program is flashed,

Or did you Select the ESP board in the Arduino IDE,
What error are you getting?


Thanks for the reply.

The board has reset and flash button onboard. I successfully flashed the firmware with NodeMCU. Reinstalled Arduino and added the ESP8266 library.

I connected via serial monitor to get the following:

NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
lua: cannot open init.lua

So it appears the reinstall fixed my original connection issues.

I tried my first sketch using some of the inbuilt example. But i seem to get the same error

Arduino: 1.6.11 (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, 9600, 4M (3M SPIFFS)"
Sketch uses 222,201 bytes (21%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 31,576 bytes (38%) of dynamic memory, leaving 50,344 bytes for local variables. Maximum is 81,920 bytes.
error: Failed to open COM3
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

Re: Help starting with Arduino Software (IDE) with ESP-12

PostPosted: Thu Sep 01, 2016 2:11 pm
by jankop
COM3?

That's weird. Do you set the correct COM port? Remember also that two applications at the same time not have access to a COM port.