-->
Page 1 of 2

Serial Monitor not working

PostPosted: Wed Jul 08, 2015 4:10 am
by Nico van der Dussen
Hi,

I'm a newbie to ESP8266 and just loaded my first sketches :)

I have a ESP12 module, using an CP2102 programmer and an external 3.3V powersource.

I'm using Arduino IDE 1.6.5r2 on Windows 8.1 and am trying to get the ESP8266 to communicate with the serial monitor.

I tried to load the example connect to wifi sketch, but did not see anything on the serial monitor :(

I reduced the sketch to

Code: Select allvoid setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
Serial.print(".");
}


And stil can's see anything on the serial monitor.

I experienced the following:

If the serial monitor is open while trying to upload, the upload fails.

My process is to close all IDE windows except the one I want to upload, upload and then open the monitor.

Up to now I was not able to see anything in the monitor.

Please assist :)

Re: Serial Monitor not working

PostPosted: Wed Jul 08, 2015 4:17 am
by Nico van der Dussen
Ok,

Just after posting I noticed that my code was lacking a setup

changed to

Code: Select allvoid setup() {
  // put your setup code here, to run once:
Serial.begin(115200);
}

void loop() {
  // put your main code here, to run repeatedly:
Serial.print("X");
}


It did not solve the problem - still nothing happens in the Monitor screen

Re: Serial Monitor not working

PostPosted: Wed Jul 15, 2015 3:57 pm
by Lotus
If you have the RST and GPIO0 pins connected to RTS and DTR I noticed the Arduino Serial Monitor pulls those two lines low preventing the esp8266 from running. You can use another terminal emulator or disconnect those lines.

Re: Serial Monitor not working

PostPosted: Tue Aug 09, 2016 11:45 am
by francescofusco
Don't ask me why but I had the same problem. But by using "Serial.printf" and not "Serial.print" or "Serial.println", it worked. Ciao.