Page 1 of 1

Core 0 panic'ed StoreProhibited error during deinit Wi-Fi on ESP32

Posted: Thu Apr 09, 2020 4:31 pm
by nzh912
Hello!

When im doing proper wifi deinit, sometime the ESP32 unexpectedly restart as well.
Below is the logs. i called
  • esp_wifi_disconnect(); esp_wifi_stop(); esp_wifi_deinit();
this error happens when executing the esp_wifi_deinit(). Not always got this error, only sometimes.

Code: Select all

I (86296) wifi: state: run -> init (0)
I (86296) wifi: pm stop, total sleep time: 2042994 us / 2695783 us

I (86296) wifi: new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
E (86296) wifi: esp_wifi_connect 1145 wifi not start
E (86306) wifi: esp_wifi_connect 1145 wifi not start
I (86306) wifi: flush txq
I (86306) wifi: stop sw txq
I (86316) wifi: lmac stop hw txq
I (86316) wifi: Deinit lldesc rx mblock:10
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x40092d94  PS      : 0x00060333  A0      : 0x800814ae  A1      : 0x3ffb75c0
0x40092d94: uxPortCompareSet at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/tasks.c:3507
 (inlined by) vPortCPUAcquireMutexIntsDisabledInternal at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/portmux_imp
l.inc.h:86
 (inlined by) vPortCPUAcquireMutexIntsDisabled at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/portmux_impl.h:98
 (inlined by) vTaskEnterCritical at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/tasks.c:4201

A2      : 0x00000000  A3      : 0x00000008  A4      : 0x80092e95  A5      : 0x3ffbf090
A6      : 0x00000003  A7      : 0x00060023  A8      : 0x0000cdcd  A9      : 0x0000cdcd
A10     : 0xb33fffff  A11     : 0x0000abab  A12     : 0x00060320  A13     : 0x00000001
A14     : 0x00060320  A15     : 0x00000000  SAR     : 0x0000001a  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff

ELF file SHA256: ccbc4ed7dbd8bba7ae94a8dd64fd8411ffd65546f2f8ed06082a00970928891b

Backtrace: 0x40092d94:0x3ffb75c0 0x400814ab:0x3ffb75e0 0x400826d5:0x3ffb7600 0x400f3365:0x3ffb7640 0x400d16a4:0x3ffb7660 0x400d170b:0x3ffb7680 0x400940c5:0x3ffb76a0
0x40092d94: uxPortCompareSet at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/tasks.c:3507
 (inlined by) vPortCPUAcquireMutexIntsDisabledInternal at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/portmux_imp
l.inc.h:86
 (inlined by) vPortCPUAcquireMutexIntsDisabled at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/portmux_impl.h:98
 (inlined by) vTaskEnterCritical at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/tasks.c:4201

0x400814ab: wifi_int_disable_wrapper at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/esp32/esp_adapter.c:194

0x400826d5: pp_post at ??:?

0x400f3365: lmac_stop_hw_txq at ??:?

0x400d16a4: timer_process_alarm at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/esp32/esp_timer.c:435

0x400d170b: timer_task at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/esp32/esp_timer.c:435

0x400940c5: vPortTaskWrapper at C:/Users/msys32_stable_v3.3.1/home/Admin/esp/esp-idf/components/freertos/port.c:403


Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

in normal wifi deinit, there is no Guru Meditation Error...
the log :

Code: Select all

I (27167) wifi: state: run -> init (0)
I (27167) wifi: pm stop, total sleep time: 2076045 us / 2735317 us

I (27167) wifi: new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
E (27167) wifi: esp_wifi_connect 1145 wifi not start
I (27177) wifi: flush txq
I (27187) wifi: stop sw txq
I (27187) wifi: lmac stop hw txq
E (27177) wifi: esp_wifi_connect 1145 wifi not start
I (27197) wifi: Deinit lldesc rx mblock:10
I (27367) wifi: wifi driver task: 3ffde694, prio:23, stack:3584, core=0
I (27367) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (27367) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (27397) wifi: wifi firmware version: ac331d7
I (27407) wifi: config NVS flash: enabled
I (27407) wifi: config nano formating: disabled
I (27407) wifi: Init dynamic tx buffer num: 32
I (27407) wifi: Init data frame dynamic rx buffer num: 32
I (27417) wifi: Init management frame dynamic rx buffer num: 32
I (27417) wifi: Init management short buffer num: 32
I (27427) wifi: Init static rx buffer size: 1600
I (27427) wifi: Init static rx buffer num: 10
I (27427) wifi: Init dynamic rx buffer num: 32
I (27437) wifi: set country: cc=MY  schan=1 nchan=13 policy=0

I (27457) wifi: mode : null
I (27457) wifi: ic_enable_sniffer
Anything i can do to fix this problem ?