WiFi AP mode now fail with new API
Posted: Wed Nov 29, 2017 9:39 pm
I am not sure, but ever since I downloaded and upgraded the firmware on 11/26/17 and have not been able to run the WiFi AP example that I ran before.
I downloaded the newer API because of the issue I was having with fat.h header file being recognized but now I am having problems with setting up WiFi in AP mode.
I also reloaded the tool chain and ran git upgrade recursive.
The error happens when calling esp_wifi_init(&wifi_init_config)
The application compiles and runs but keeps resetting.
Below is a listing showing a backtrace before restarting:
D (241) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (241) tcpip_adapter: check: remote, if=1 fn=0x401180bc
0x401180bc: tcpip_adapter_set_ip_info_api at C:/msys32/home/johnk/esp/esp-idf/components/tcpip_adapter/tcpip_adapter_lwip.c:1065
D (251) tcpip_adapter: check: local, if=1 fn=0x40117db4
0x40117db4: tcpip_adapter_dhcps_start_api at C:/msys32/home/johnk/esp/esp-idf/components/tcpip_adapter/tcpip_adapter_lwip.c:1065
D (251) tcpip_adapter: dhcp server re init
D (261) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (261) tcpip_adapter: check: remote, if=1 fn=0x40117db4
0x40117db4: tcpip_adapter_dhcps_start_api at C:/msys32/home/johnk/esp/esp-idf/components/tcpip_adapter/tcpip_adapter_lwip.c:1065
ESP_ERROR_CHECK failed: esp_err_t 0x1101 at 0x40106c32
0x40106c32: app_main at C:/msys32/home/johnk/blink/main/wifi_ap.c:163 (discriminator 1)
file: "C:/msys32/home/johnk/blink/main/wifi_ap.c" line 163
func: app_main
expression: esp_wifi_init(&wifi_init_config)
Backtrace: 0x4008798c:0x3ffbabc0 0x40087cf9:0x3ffbabe0 0x40106c32:0x3ffbac00 0x400d0e96:0x3ffbad00
0x4008798c: invoke_abort at C:/msys32/home/johnk/esp/esp-idf/components/esp32/panic.c:572
0x40087cf9: _esp_error_check_failed at C:/msys32/home/johnk/esp/esp-idf/components/esp32/panic.c:584
0x40106c32: app_main at C:/msys32/home/johnk/blink/main/wifi_ap.c:163 (discriminator 1)
0x400d0e96: main_task at C:/msys32/home/johnk/esp/esp-idf/components/esp32/cpu_start.c:456
Rebooting...
I downloaded the newer API because of the issue I was having with fat.h header file being recognized but now I am having problems with setting up WiFi in AP mode.
I also reloaded the tool chain and ran git upgrade recursive.
The error happens when calling esp_wifi_init(&wifi_init_config)
The application compiles and runs but keeps resetting.
Below is a listing showing a backtrace before restarting:
D (241) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (241) tcpip_adapter: check: remote, if=1 fn=0x401180bc
0x401180bc: tcpip_adapter_set_ip_info_api at C:/msys32/home/johnk/esp/esp-idf/components/tcpip_adapter/tcpip_adapter_lwip.c:1065
D (251) tcpip_adapter: check: local, if=1 fn=0x40117db4
0x40117db4: tcpip_adapter_dhcps_start_api at C:/msys32/home/johnk/esp/esp-idf/components/tcpip_adapter/tcpip_adapter_lwip.c:1065
D (251) tcpip_adapter: dhcp server re init
D (261) tcpip_adapter: call api in lwip: ret=0x0, give sem
D (261) tcpip_adapter: check: remote, if=1 fn=0x40117db4
0x40117db4: tcpip_adapter_dhcps_start_api at C:/msys32/home/johnk/esp/esp-idf/components/tcpip_adapter/tcpip_adapter_lwip.c:1065
ESP_ERROR_CHECK failed: esp_err_t 0x1101 at 0x40106c32
0x40106c32: app_main at C:/msys32/home/johnk/blink/main/wifi_ap.c:163 (discriminator 1)
file: "C:/msys32/home/johnk/blink/main/wifi_ap.c" line 163
func: app_main
expression: esp_wifi_init(&wifi_init_config)
Backtrace: 0x4008798c:0x3ffbabc0 0x40087cf9:0x3ffbabe0 0x40106c32:0x3ffbac00 0x400d0e96:0x3ffbad00
0x4008798c: invoke_abort at C:/msys32/home/johnk/esp/esp-idf/components/esp32/panic.c:572
0x40087cf9: _esp_error_check_failed at C:/msys32/home/johnk/esp/esp-idf/components/esp32/panic.c:584
0x40106c32: app_main at C:/msys32/home/johnk/blink/main/wifi_ap.c:163 (discriminator 1)
0x400d0e96: main_task at C:/msys32/home/johnk/esp/esp-idf/components/esp32/cpu_start.c:456
Rebooting...