nodemcu / nodemcu-flasher

A firmware Flash tool for nodemcu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP8266 Fatal exception (0) using NodeMCU

aditgupta100 opened this issue · comments

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
ezoic increase your site revenue