ESP32固件云端httpUpdate升级时经常自动重启,导致升级失败

IsTrue
Posts: 1
Joined: Thu Apr 08, 2021 8:31 am

ESP32固件云端httpUpdate升级时经常自动重启,导致升级失败

Postby IsTrue » Thu Apr 08, 2021 8:43 am

t_httpUpdate_return ret = httpUpdate.update(updateclient, updateUrl);

自己找人搞的ESP32板子,云端升级时经常随机重启,跟踪重启出错信息:

15:31:16.139 -> Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)
15:31:16.139 -> Core 1 register dump:
15:31:16.139 -> PC : 0x40082246 PS : 0x00060034 A0 : 0x80082356 A1 : 0x3ffbe900
15:31:16.139 -> A2 : 0x00000001 A3 : 0x00000008 A4 : 0x0000000b A5 : 0x3ffbe910
15:31:16.139 -> A6 : 0x00000008 A7 : 0x00000001 A8 : 0x3f406022 A9 : 0x000000ad
15:31:16.174 -> A10 : 0x01883b6c A11 : 0x3ffc6b20 A12 : 0x000000d0 A13 : 0x3ffc7ca4
15:31:16.174 -> A14 : 0x00000003 A15 : 0x00060023 SAR : 0x00000020 EXCCAUSE: 0x00000007
15:31:16.174 -> EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
15:31:16.174 -> Core 1 was running in ISR context:
15:31:16.174 -> EPC1 : 0x400621c6 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40082246
15:31:16.207 ->
15:31:16.207 -> Backtrace: 0x40082246:0x3ffbe900 0x40082353:0x3ffbe930 0x400829f1:0x3ffbe960 0x40086981:0x3ffbe980 0x400621c3:0x3ffcfb10 0x4009b773:0x3ffcfb30 0x4009b7aa:0x3ffcfb60 0x4009b849:0x3ffcfb90 0x4009bcde:0x3ffcfbb0 0x4008a699:0x3ffcfbd0 0x4008a70a:0x3ffcfbf0 0x400fb461:0x3ffcfc10 0x400e7e52:0x3ffcfc30 0x400e8095:0x3ffcfc50 0x400e735d:0x3ffcfc70 0x400e78b7:0x3ffcfcc0 0x400e7ae2:0x3ffcfdb0 0x40082102:0x3ffcfe60 0x400e1d47:0x3ffcff50 0x400e1eec:0x3ffcff90 0x400fd007:0x3ffcffe0 0x40091d3d:0x3ffd0000
15:31:16.241 ->
15:31:16.241 -> Rebooting...

这是硬件的问题,还是固件的问题;一批板子,有的板子升级顺利,有的板子升级时就随机出现这个错误。

ESP_Gargamel
Posts: 104
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32固件云端httpUpdate升级时经常自动重启,导致升级失败

Postby ESP_Gargamel » Thu Apr 08, 2021 11:16 am

参看 https://docs.espressif.com/projects/esp ... s-decoding 解析一下地址,获取一下具体的 backtrace。
从错误信息看,为 Cache disabled but cached memory region accessed,需要看下你异常的位置,是否去操作 cache memory 空间了,比如字符串。
你解析出 backtrace 函数后,可以贴下代码。

Who is online

Users browsing this forum: No registered users and 7 guests