Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP8266 Fatal exception (0) using NodeMCU #23

Open
aditgupta100 opened this issue Jul 23, 2016 · 0 comments
Open

ESP8266 Fatal exception (0) using NodeMCU #23

aditgupta100 opened this issue Jul 23, 2016 · 0 comments

Comments

@aditgupta100
Copy link

Hardware

Hardware: ESP8266-1

Description

When i boot ESP8266 i'm getting on my arduino MEGA serial monitor. Fatal exception (0): e2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c e 0xp0= 0e)02,0d00a 0e00c00Fic00= 0p0e 0xp0= 0e)02. I used NodeMcu flasher nodemcu_integer_0.9.5_20150318.bin and NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4. I'm using arduino UART (serial monitor) to talk to ESP8266. Module is powered with apt power (separate power supply)

It is flashed properly.

Settings in IDE

Module: ESP8266-1
Flash Size: 4MB
CPU Frequency: ?80Mhz?
Flash Mode: DIO
Flash Frequency: 40Mhz
Upload Using: Arduino FTDI Serial

Sketch

#include <Arduino.h>

#define esp8266 Serial2
#define CH_PD 4 // but needs a narrow low pulse
#define speed8266 115200 // This is the speed that worked with my ESP8266
void setup()
{
 esp8266.begin (speed8266);
 Serial.begin(9600);
 reset8266(); // Pin CH_PD need a reset before start communication
}
void loop()
{
 while(esp8266.available())
 { Serial.write(esp8266.read()); }
 while(Serial.available())
 { esp8266.write(Serial.read()); }
}
/*************************************************/
// Reset funtion to accept communication
void reset8266 ()
{
 pinMode(CH_PD, OUTPUT);
digitalWrite(CH_PD, LOW);
 delay(300);
 digitalWrite(CH_PD, HIGH);
}

Debug Messages

Fatal exception (0): e2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c e 0xp0= 0e)02,0d00a 0e00c00Fic00= 0p0e 0xp0= 0e)02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant