ESP8266 Reset Causes and Common Fatal Exception Causes__CN ...

2 downloads 85 Views 394KB Size Report
>epc3, rtc_info->excvaddr, rtc_info->depc);//ྌེտ಑ܦӤེૄმጱࣈ࣎҅ग़. አԭૄმ෸ԤᎱ᧣á
ESP8266 Fatal Exception



1.0 © 2016

ESP8266

Fatal exception

ROM code

1 2

Fatal Exception

2016.08

ESP8266

V1.0

Fatal exception

ESP8266

.................................................................................................................................1

1.

1.1. ROM Code 1.2.

2.

...........................................................................................................1

...............................................................................................................1

Fatal Exception

................................................................................................... 3

1. !

1. 1.1. ROM Code ESP8266

ROM code

! ROM code 1-1. ROM Code Rst cause 0 1 Deep-sleep

2 4

WDT

⚠ WDT rst cause

rst cause

1

1

1.2.

struct rst_info *rtc_info = system_get_rst_info();

Espressif

! /!4 1

2016.08

1. ! os_printf("reset reason: %x\n", rtc_info->reason); if (rtc_info->reason == REASON_WDT_RST || rtc_info->reason == REASON_EXCEPTION_RST || rtc_info->reason == REASON_SOFT_WDT_RST) { if (rtc_info->reason == REASON_EXCEPTION_RST) { os_printf("Fatal exception (%d):\n", rtc_info>exccause); } os_printf("epc1=0x%08x, epc2=0x%08x, epc3=0x%08x, excvaddr=0x%08x, depc=0x%08x\n", rtc_info->epc1, rtc_info->epc2, rtc_info>epc3, rtc_info->excvaddr, rtc_info->depc);//

}

SDK

system_get_rst_info()

Non-OS SDK API

API

ESP8266 RTOS SDK API

ESP8266 espressif.com/

zh-hans/support/download/documents

1-2. Rst cause

GPIO

0 1 2

Fatal Exception

3 4 5

Deep-sleep

6

Espressif

! /!4 2

2016.08

2.

Fatal Exception

!

2.

Fatal Exception Fatal exception 2-1.

Fatal exception

Fatal Exception

Fatal exception 1. BIN

0

2. 0

6 9

0 /

1.

/

Cache

2. 1. Cache

28/29

Cache

2.

Fatal exception (28):
 epc1=0x4025bfa6, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000000f, depc=0x00000000

user1.1024.new.2.bin



exception

“0x4025bfa6” eagle.irom0text.bin



eagle.S

exception ROM



Espressif

user1.1024.new.2.S

-

4000e190

-

4000df48

-

4000dea8

-

4000de84

-

4000e1e0

! /!4 3

2016.08

URL “



Wi-Fi

IOT www.espressif.com

Wi-Fi

© 2016

Bluetooth SIG

Suggest Documents