Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By joshuajka
#91783 I'm getting this error when i try to connect my Wemos D1 Esp8266 to a Mysql server :

Exception (28):
epc1=0x40202704 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000049 depc=0x00000000

I don't know what to do anymore... Please help me ! I'm accepting even a code that works only to know that the problem isn't my shield
User avatar
By QuickFix
#91804 I'm sorry to be this harsh: but do you really expect us to help you with your problem without showing even the slightest bit of code and/or description of your project? :shock:

Load one of the available examples (like "Blink") into your ESP to see if it works. :idea:
Code: Select all/*
  ESP8266 Blink by Simon Peter
  Blink the blue LED on the ESP-01 module
  This example code is in the public domain

  The blue LED on the ESP-01 module is connected to GPIO1
  (which is also the TXD pin; so we cannot use Serial.print() at the same time)

  Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
*/

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);     // Initialize the LED_BUILTIN pin as an output
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, LOW);   // Turn the LED on (Note that LOW is the voltage level
  // but actually the LED is on; this is because
  // it is active low on the ESP-01)
  delay(1000);                      // Wait for a second
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off by making the voltage HIGH
  delay(2000);                      // Wait for two seconds (to demonstrate the active low LED)
}
User avatar
By singhrahulxp
#91890 I Have similar issue. While i am trying to connect mysql database. This program is working since last two years but suddenly I am facing this issue.

Exception (28):
epc1=0x40202574 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000049 depc=0x00000000

#include <ESP8266WiFi.h> // Use this for WiFi instead of Ethernet.h
#include <MySQL_Connection.h>
#include <MySQL_Cursor.h>

IPAddress server_addr(148,66,***,**); // IP of the MySQL *server* here
char user[] = "*******"; // MySQL user login username
char password[] = "******"; // MySQL user login password

// Sample query
char INSERT_SQL[] = "INSERT INTO test_arduino.hello_arduino (message) VALUES ('Hello, Arduino!')";

// WiFi card example
char ssid[] = "Rahul1"; // your SSID
char pass[] = "0123456789"; // your SSID Password

WiFiClient client; // Use this for WiFi instead of EthernetClient
MySQL_Connection conn(&client);
MySQL_Cursor* cursor;

void setup()
{
Serial.begin(9600);
while (!Serial); // wait for serial port to connect. Needed for Leonardo only

// Begin WiFi section
Serial.printf("\nConnecting to %s", ssid);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

// print out info about the connection:
Serial.println("\nConnected to network");
Serial.print("My IP address is: ");
Serial.println(WiFi.localIP());

Serial.print("Connecting to SQL... ");
if (conn.connect(server_addr, 3306, user, password))
Serial.println("OK.");
else
Serial.println("FAILED.");

// create MySQL cursor object
cursor = new MySQL_Cursor(&conn);
}

void loop()
{
if (conn.connected())
cursor->execute(INSERT_SQL);

delay(5000);
}
User avatar
By PedroMoraes
#92470 I was having this same problem these days, a one year ago I had done a project with Nodecmu and this mysql library, and it had worked really well. This month I resumed this project, but at that time my HD gave a problem and I had to reinstall everything. With that the arduino IDE and the libraries were all updated, and to my surprise this project didn't work anymore. After days of trying I managed to solve: I downgraded the library from ESP8266 to 2.7.0 and the arduino IDE to 1.8.8 and then it started working again!