Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Borisko
#66145 Hello,
I want to flash my ESP-12-E module with Arduino IDE, but it seems that something went wrong...
Some time ago everything worked fine.
I use PL-2303 as TTL converter to flash ESP module.

ESP ------ PL (connection)

VCC ------ 3.3V
CH_PD --- 3.3V
TX ------- RX
RX ------- TX
GPIO0 --- GND
GND ----- GND


Now Iam trying to test serial communication via Arduino monitor.
Here is my code sample:
Code: Select all#include <ESP8266WiFi.h>

void setup() {
  // start serial port at 115200 bps and wait for port to open:
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  establishContact();  // send a byte to establish contact until receiver responds
}

void loop() {
  // if we get a valid byte, read analog ins:
  if (Serial.available() > 0) {

    if (Serial.read() == 'Hello') {
      Serial.print(" World!");
      Serial.println("----------------");
    }
  }
}

void establishContact() {
  while (Serial.available() <= 0) {
    Serial.println("0,0,0");   // send an initial string
    delay(1000);
  }
}


First 2 times there was propper response via serial monitor in Arduino IDE (something like that: 0,0,0 e.t.c), but now it doesn't work.

Maybe I'm doing something wrong?

There is some messadge appears continuously in serial monitor right after flashing:
Fatal exception (0):
epc1=0x40217d24, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

What doest it mean?

Then if I detach GPIO0 -> GND connection to switch off the programming state and power on again it starts to display incomprehensible characters in one line.

Plz, help me :)