Cannot recover from Fatal exception (0): problem during boot

panaghs
Posts: 5
Joined: Thu Dec 15, 2016 9:04 pm

Re: Cannot recover from Fatal exception (0): problem during boot

Postby panaghs » Sun Dec 18, 2016 8:29 am

Hello jemy hello espressif administrators,

I did not get any efuse-connected message... and I erased the whole flash memory several times with Pratik's trick. Do I have to use some later version than FLASH_DOWNLOAD_TOOLS_v2.4_150924 that I used? I also used NodeMCU firmware programmes and got normal flash results for all packages downloaded.

Doesn't make sense...

I am willing to send you the chip for checking and analysis. Would you like that?

Regards,

Panagis

jemy
Posts: 3
Joined: Mon Dec 12, 2016 10:03 pm

Re: Cannot recover from Fatal exception (0): problem during boot

Postby jemy » Mon Dec 19, 2016 1:55 am

I use flash_download_tools_v3.4.4. the early version doesn't show Efuse error.
efuse is in the processor not flash. when it change it will change the function of the processor so you need different firmware for it to run.
you earsed flash memory but still flashed old firmware into it. so you got same result.
I try not to think the factory hide efuse in the chip could totally disable the chip. if that' the case would make me sad and angry.

panaghs
Posts: 5
Joined: Thu Dec 15, 2016 9:04 pm

Re: Cannot recover from Fatal exception (0): problem during boot

Postby panaghs » Fri Dec 23, 2016 10:59 pm

Unfortunatelly, I cannot use the laterversions. This is because the lowest possible flashing speed is 115200 and my esp syncs at 9600. Except if you know a way how to add the option of 9600 at the dropdown list...


Thanks

User avatar
pratik
Posts: 450
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Cannot recover from Fatal exception (0): problem during boot

Postby pratik » Tue Dec 27, 2016 11:06 pm

Hi!

Got the issue now in greater detail, thanks for the long post! I'll forward this and get feedback on the issue.
I'm sure now that it's no issue with the Electrical connection or supply.
I wonder if changing the flash chip will resolve this issue? I'll let you know soon.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

panaghs
Posts: 5
Joined: Thu Dec 15, 2016 9:04 pm

Re: Cannot recover from Fatal exception (0): problem during boot

Postby panaghs » Wed Dec 28, 2016 12:17 am

Thank you Pratik. If you have any news, please, let me know.

Panagis

pezGordo
Posts: 2
Joined: Wed Jan 04, 2017 10:59 pm

Re: Cannot recover from Fatal exception (0): problem during boot

Postby pezGordo » Thu Jan 05, 2017 12:13 am

Hello, I'm suffering the same issue now

I can upload , delete flash

I've tried Arduino IDE, esptool.py (in Ubuntu), NodeMCU, NONOS

All 10K resistors are there (breadboard)

100nf capacitor near (into) esp12

still receiving response below

please any advice on how to solve is very appreciated, I have 10 of these and want to use them

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 4Mbit(256KB+256KB)
  jump to run user1 @ 1000

Fatal exception (0):
epc1=0x40201670, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40201670, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
.
.
.


I can see ets Jan 8 2013,rst cause:2, boot mode:(3,6) , rst cause:2 impliing "reset pin" , but measuring reset pin I see it 3.3V steady

also, I can read SPI Flash Size & Map: 4Mbit(256KB+256KB), but it is suposed I'm using (512KB+512KB) bin/at/ folder of esp8266_nonos_sdk_v2.0.0_16_08_10

please help, thanks

ESP_Greg
Posts: 49
Joined: Thu Sep 17, 2015 6:10 pm

Re: Cannot recover from Fatal exception (0): problem during boot

Postby ESP_Greg » Thu Jan 12, 2017 11:18 am

Hi pezGordo,
You need select 8Mbit flash map at least. AT binary can't support less than 8Mbit flash map.

aditgupta100
Posts: 3
Joined: Mon Jul 11, 2016 1:29 am

Re: Cannot recover from Fatal exception (0): problem during boot

Postby aditgupta100 » Fri Jan 13, 2017 1:54 am

For AT firmware use below address and configuration for ESP8266-01:
boot_v1.6.bin : 0X00000
esp_init_data_default.bin : 0XFC000
blank.bin : 0XFE000
user1.1024.new.2.bin : 0x1000

BAUD RATE : 115200
FLASH SIZE : 8MB
FLASH SPEED : 40MHz
SPI : QIO

This module is very sensitive i guess, because with above settings my module worked in AT but than in middle it might get to reset state (printing that fatal exception).

Even i'm facing same issue with NodeMCU. I'm able to run module with AT but what shall i do to run NodeMCU (Lua scripts on module) it gives same fatal exception (0) error (illegalInstructionCause) which probably is because of firmware not detected.

aditgupta100
Posts: 3
Joined: Mon Jul 11, 2016 1:29 am

Re: Cannot recover from Fatal exception (0): problem during boot

Postby aditgupta100 » Fri Jan 13, 2017 2:12 am

ESP_Greg wrote:Hi pezGordo,
You need select 8Mbit flash map at least. AT binary can't support less than 8Mbit flash map.


What is happening :
During time of flashing module i need to bring CH_PD HIGH -> LOW -> HIGH.
After this patchwork, I'm able to flash my module with tool and firmware
When i switch to programming mode, also i need to bring CH_PD HIGH -> LOW -> HIGH to boot the module
But during boot, with Esplorer/putty i'm getting
Fatal exception (0):
epc1=0x40210880, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40210880, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

Hardware used :
ESP8266-01
Arduino is used for Power supply (3.3V) and UART


/////////////////////////////////////////////////////
FIRMWARE/BINARIES INSTALLED :
/////////////////////////////////////////////////////

nodemcu_integer_0.9.5_20150318.bin : 0X00000
esp_init_data_default.bin : 0XFC000
blank.bin : 0XFE000

/////////////////////////////////////////////////////
Flash Configuration
/////////////////////////////////////////////////////

BAUD RATE : 115200 (Tried with 9600 baud also)
FLASH SIZE : 8MB
FLASH SPEED : 40MHz
SPI : DIO (Tried with QIO also)


Trial to recover:
a) Reflash module with NodeMCU 0.9.6 at 0x000  fail, same error
b) Reflash module with following binaries  fail, same error
nodemcu_integer_0.9.5_20150318.bin : 0X00000
esp_init_data_default.bin : 0XFC000
blank.bin : 0XFE000
c) Power supply problem:
Used external power supply from beaglebone 3.3V and applied 100uF capacitor on rails (between VCC and GND, to avoid any noise )  fail, same error

Terminal output:
CODE: SELECT ALL
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Fatal exception (0):
epc1=0x402147a4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

d) Reflash module with latest AT firmware found on github
boot_v1.6.bin : 0X00000
esp_init_data_default.bin : 0XFC000
blank.bin : 0XFE000
user1.1024.new.2.bin : 0x1000
No more fatal exception, just that module goes into reset automatically.
Attachments
Esplorer_config.JPG
Esplorer not able to detect
Capture.JPG
AT firmware installed properly and AT is working fine.

User avatar
pratik
Posts: 450
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: Cannot recover from Fatal exception (0): problem during boot

Postby pratik » Fri Jan 13, 2017 2:09 pm

epc1=0x402147a4

This is the address of the instructions that cause exceptions. Does anyone here have the .S file of the output binary that has been causing exceptions? That file is absolutely necessary to get an idea of which function is actually triggering exception.
Random resets are power supply issue most of the time. But seems like something else here, I am not able to reproduce this issue.
Feel free to send me the binary files + your ESP8266 system config info on pratik@espressif.com so that I can check the binaries out. A .S file is much appreciated!

By the way, if you are breadboarding with ESP8266, do watch out for ground loops. A ground loop on a breadboard will mess your system if there are RF components involved.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: No registered users and 1 guest