OTA升级完reboot程序出现Fatal exception 28(LoadProhibitedCause)

meeke
Posts: 28
Joined: Fri Apr 01, 2016 10:19 am

OTA升级完reboot程序出现Fatal exception 28(LoadProhibitedCause)

Postby meeke » Thu Oct 27, 2016 4:47 pm

以下是我的环境:
SDK:ESP8266_NONOS_SDK_V2.0.0_16_07_19和ESP8266_NONOS_SDK_V2.0.0_16_08_10,两个SDK都会重启,log信息也相似,epc1位置也一样
BOOT文件:boot_v1.6.bin
FLASH SIZE:8Mbit

每次升级都会出现该错误,但是我将运行的userbin和地址打印出来看,下载成功,也在跑新的userbin了,就是每次升级完reboot都会出现Fatal exception错误重启。
Fatal exception (28):epc1=0x4000df2f
user1.1024.new.2.S文件里找不到该对应地址。

是否是ROM里面代码问题?
- 4000e190 <memset>
- 4000df48 <memcpy>
- 4000dea8 <memcmp>
- 4000de84 <bzero>
- 4000e1e0 <strstr>

部分关键打印log如下:
upgrade file download finished.
flash_crc = 501400701
img_crc = 501400701
upgrade_check
device_upgrade_success
reboot to use2
state: 5 -> 0 (0)
rm 0
pm close 7
del if0
usl
TCP: Reconnect to 140.205.202.9:8080
TCP_RECONNECT_REQ errType=-11
del if0
usl
Fatal exception 28(LoadProhibitedCause):
epc1=0x4000df2f, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000033, depc=0x00000000

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

load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

2nd boot version : 1.6
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user2 @ 81000

屸?俷鞉r傭n|?宭巔rl屸r抣宩
reset reason: 2
Fatal exception (28):
epc1=0x4000df2f, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000033, depc=0x00000000
run user2.bin @ 0x00081000
free heap size:39600
start dns
mode : sta(60:01:94:03:17:f6)
add if0

ets Jan 8 2013,rst cause:4, boot mode:(3,5)

wdt reset
load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

2nd boot version : 1.6
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user2 @ 81000

屸?俷鞉r傭n|?宭巔rl屸r抣宩
reset reason: 0
run user2.bin @ 0x00081000
free heap size:39600
start dns
mode : sta(60:01:94:03:17:f6)
add if0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 6
cnt

connected with ConSmart, channel 6
dhcp client start...
ip:192.168.1.118,mask:255.255.255.0,gw:192.168.1.1
Last edited by meeke on Thu Oct 27, 2016 5:26 pm, edited 1 time in total.

meeke
Posts: 28
Joined: Fri Apr 01, 2016 10:19 am

Re: OTA升级完reboot程序出现Fatal exception 28(LoadProhibitedCause)

Postby meeke » Thu Oct 27, 2016 4:58 pm

还有同样的代码在SDK1.5.3上运行时经常会出现以下几种莫名的重启,我用了最新的SDK后程序工作时目前没出现以下异常重启现象,只是OTA云端升级时会有上述的现象
Fatal exception 9(LoadStoreAlignmentCause):

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

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: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

don't use rtc mem data
rlSreset reason: 2
Fatal exception (9):
epc1=0x40100c16, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0017cd0d, depc=0x00000000

或者
Fatal exception 9
ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
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: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

don't use rtc mem data
rlSreset reason: 1
epc1=0x40000f68, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

以及
Fatal exception 9(LoadStoreAlignmentCause):
epc1=0x4010094d, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000000a, depc=0x00000000

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

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: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

don't use rtc mem data
rleset reason: 2
Fatal exception (9):
epc1=0x4010094d, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000000a, depc=0x00000000
SSID:ConSmart,PSW:smartcon
start dns
mode : sta(60:01:94:03:17:f6)
add if0
f r0,
ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
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: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

rlSreset reason: 1
epc1=0x4000bd9c, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000000a, depc=0x00000000

以及
Fatal exception 28(LoadProhibitedCause):

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
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: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

rl巶rl尀伯謺褋reason: 2
Fatal exception (28):
epc1=0x40100c16, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000de49c, depc=0x00000000

liding
Posts: 6
Joined: Mon Nov 02, 2015 3:50 pm

Re: OTA升级完reboot程序出现Fatal exception 28(LoadProhibitedCause)

Postby liding » Thu Nov 03, 2016 11:10 am

我在使用1.5.3也是出现类似的问题,隔一段时间,就一直在重启,一直重启,不知道什么原因,不知道你找到什么原因了没有

meeke
Posts: 28
Joined: Fri Apr 01, 2016 10:19 am

Re: OTA升级完reboot程序出现Fatal exception 28(LoadProhibitedCause)

Postby meeke » Thu Nov 03, 2016 2:22 pm

liding wrote:我在使用1.5.3也是出现类似的问题,隔一段时间,就一直在重启,一直重启,不知道什么原因,不知道你找到什么原因了没有

很遗憾,并没有

Who is online

Users browsing this forum: No registered users and 9 guests