You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDF version (commit id): ESP-IDF v3.2-dev-607-gb14e87a6 Aug25,2018
Development Env: [Eclipse]
Operating System: [Windows]
Power Supply: [USB]
Problem Description
esp_wifi_disconnect() triggers Guru Meditation Error when Wifi not started or Wifi not init'd.
@note This call is part of a cleanup function that is run every time before entering deep sleep. The idea is to cleanup everything according to the requirements of going into deep sleep, and disconnecting/stopping Wifi is one of them. The cleanup function does not always know if Wifi was started or not.
Expected Behavior
The function should return an error message in these situations according to the techdoc:
/**
* @brief Disconnect the ESP32 WiFi station from the AP.
*
* @return
* - ESP_OK: succeed
* - ESP_ERR_WIFI_NOT_INIT: WiFi was not initialized by esp_wifi_init
* - ESP_ERR_WIFI_NOT_STARTED: WiFi was not started by esp_wifi_start
* - ESP_FAIL: other WiFi internal errors
*/
Actual Behavior
esp_wifi_disconnect() triggers Guru Meditation Error when Wifi not started or Wifi not init'd.
Workaround
None.
Steps to repropduce
No wiring needed.
cd ~
git clone --recursive https://github.com/pantaluna/support_esp_espidf3.git
cd support_esp_espidf3
make flash monitor
...
I (1350) cpu_start: App cpu up.
I (1451) heap_init: Initializing. RAM available for dynamic allocation:
I (1472) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1490) heap_init: At 3FFB7ED8 len 00028128 (160 KiB): DRAM
I (1510) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1530) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1550) heap_init: At 4008FC3C len 000103C4 (64 KiB): IRAM
I (1569) cpu_start: Pro cpu start user code
I (528) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400e39f4 PS : 0x00060930 A0 : 0x800d21fc A1 : 0x3ffb9c20
0x400e39f4: esp_wifi_disconnect at ??:?
A2 : 0x3ffb3f48 A3 : 0x00000000 A4 : 0x3ffb106c A5 : 0x0000000c
A6 : 0x00060220 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffb9c10
A10 : 0x00000000 A11 : 0x000000cd A12 : 0x3ffbb8a4 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000138 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
Backtrace: 0x400e39f4:0x3ffb9c20 0x400d21f9:0x3ffb9c50 0x400d2293:0x3ffb9c80 0x400d09b6:0x3ffb9ca0
0x400e39f4: esp_wifi_disconnect at ??:?
0x400d21f9: wifi_just_disconnect at C:/myiot/esp/support_esp_espidf3/main/support3_main.c:31
0x400d2293: app_main at C:/myiot/esp/support_esp_espidf3/main/support3_main.c:51
0x400d09b6: main_task at C:/myiot/esp/esp-idf/components/esp32/cpu_start.c:473
Rebooting...
ets Jun 8 2016 00:22:57
The text was updated successfully, but these errors were encountered:
FayeY
changed the title
esp_wifi_disconnect() triggers Guru Meditation Error when Wifi not started or init'd
[TW#25935] esp_wifi_disconnect() triggers Guru Meditation Error when Wifi not started or init'd
Aug 30, 2018
https://github.com/pantaluna/support_esp_espidf3
Environment
Problem Description
esp_wifi_disconnect() triggers Guru Meditation Error when Wifi not started or Wifi not init'd.
@note This call is part of a cleanup function that is run every time before entering deep sleep. The idea is to cleanup everything according to the requirements of going into deep sleep, and disconnecting/stopping Wifi is one of them. The cleanup function does not always know if Wifi was started or not.
Expected Behavior
The function should return an error message in these situations according to the techdoc:
Actual Behavior
esp_wifi_disconnect() triggers Guru Meditation Error when Wifi not started or Wifi not init'd.
Workaround
None.
Steps to repropduce
No wiring needed.
Code to reproduce this issue
https://github.com/pantaluna/support_esp_espidf3
Debug Logs
The text was updated successfully, but these errors were encountered: