esp-idf: Can't connect to wifi using esp-idf above 4.0 (IDFGH-5219)
Environment
Module or chip used: ESP32-D0WDQ6 or ESP32-D0WD Any IDF after 4.0 (4.0 is the latest working SDK for this module) Current testing is v4.4-dev-1254-g639e7ad49
Problem Description
Can’t connect to WiFi or Bluetooth
Steps to reproduce
Just build getting-started/station example. It won’t work. I have tried a lot of sets of configurations, but even on default it doesn’t work.
Debug Logs
I (0) cpu_start: App cpu up.
I (1095) cpu_start: Pro cpu start user code
I (1095) cpu_start: cpu freq: 160000000
I (1095) cpu_start: Application information:
I (1099) cpu_start: Project name: fr_esp32
I (1104) cpu_start: App version: 1
I (1109) cpu_start: Compile time: May 6 2021 12:31:04
I (1115) cpu_start: ELF file SHA256: 0135a9deb691125f...
I (1121) cpu_start: ESP-IDF: v4.4-dev-1254-g639e7ad49
I (1128) heap_init: Initializing. RAM available for dynamic allocation:
I (1135) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1141) heap_init: At 3FFB7628 len 000289D8 (162 KiB): DRAM
I (1147) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1154) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1160) heap_init: At 400947E0 len 0000B820 (46 KiB): IRAM
I (1168) spi_flash: detected chip: mxic
I (1171) spi_flash: flash io: dio
I (1176) sleep: Configure to isolate all GPIO pins in sleep state
I (1182) sleep: Enable automatic switching of GPIO sleep configuration
I (1190) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (1220) wifi station: ESP_WIFI_MODE_STA
I (1240) wifi:wifi driver task: 3ffb8fd8, prio:23, stack:6656, core=0
I (1240) system_api: Base MAC address is not set
I (1240) system_api: read default base MAC address from EFUSE
I (1250) wifi:wifi firmware version: 44799ff
I (1250) wifi:wifi certification version: v7.0
I (1250) wifi:config NVS flash: enabled
I (1250) wifi:config nano formating: disabled
I (1260) wifi:Init data frame dynamic rx buffer num: 32
I (1260) wifi:Init management frame dynamic rx buffer num: 32
I (1270) wifi:Init management short buffer num: 32
I (1270) wifi:Init dynamic tx buffer num: 32
I (1280) wifi:Init static rx buffer size: 1600
I (1280) wifi:Init static rx buffer num: 10
I (1290) wifi:Init dynamic rx buffer num: 32
I (1290) wifi_init: rx ba win: 6
I (1290) wifi_init: tcpip mbox: 32
I (1300) wifi_init: udp mbox: 6
I (1300) wifi_init: tcp mbox: 6
I (1300) wifi_init: tcp tx win: 5744
I (1310) wifi_init: tcp rx win: 5744
I (1310) wifi_init: tcp mss: 1440
I (1320) wifi_init: WiFi IRAM OP enabled
I (1320) wifi_init: WiFi RX IRAM OP enabled
I (1350) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
W (1350) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (1510) wifi:mode : sta (30:ae:a4:8a:53:90)
I (1510) wifi:enable tsf
I (1510) wifi station: wifi_init_sta finished.
I (1640) wifi:new:<2,0>, old:<1,0>, ap:<255,255>, sta:<2,0>, prof:1
I (2390) wifi:state: init -> auth (b0)
I (2440) wifi:state: auth -> assoc (0)
I (2480) wifi:state: assoc -> run (10)
I (5590) wifi:state: run -> init (fc0)
I (5590) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (5590) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (5600) wifi station: retry to connect to the AP
I (5600) wifi station: connect to the AP fail
I (7650) wifi station: retry to connect to the AP
I (7650) wifi station: connect to the AP fail
I (7660) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (7660) wifi:state: init -> auth (b0)
I (7700) wifi:state: auth -> assoc (0)
I (7740) wifi:state: assoc -> run (10)
I (10850) wifi:state: run -> init (fc0)
I (10850) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (10850) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (10860) wifi station: retry to connect to the AP
I (10860) wifi station: connect to the AP fail
I (12910) wifi station: retry to connect to the AP
I (12910) wifi station: connect to the AP fail
I (12920) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (12920) wifi:state: init -> auth (b0)
I (12960) wifi:state: auth -> assoc (0)
I (13000) wifi:state: assoc -> run (10)
I (16110) wifi:state: run -> init (fc0)
I (16110) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (16110) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (16120) wifi station: retry to connect to the AP
I (16120) wifi station: connect to the AP fail
I (18170) wifi station: retry to connect to the AP
I (18170) wifi station: connect to the AP fail
I (18180) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (18180) wifi:state: init -> auth (b0)
I (18220) wifi:state: auth -> assoc (0)
I (18260) wifi:state: assoc -> run (10)
I (21370) wifi:state: run -> init (fc0)
I (21370) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (21370) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (21380) wifi station: retry to connect to the AP
I (21380) wifi station: connect to the AP fail
I (23430) wifi station: retry to connect to the AP
I (23430) wifi station: connect to the AP fail
I (23440) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (23440) wifi:state: init -> auth (b0)
I (23480) wifi:state: auth -> assoc (0)
I (23520) wifi:state: assoc -> run (10)
I (26630) wifi:state: run -> init (fc0)
I (26630) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (26630) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (26640) wifi station: retry to connect to the AP
I (26640) wifi station: connect to the AP fail
I (28690) wifi station: retry to connect to the AP
I (28690) wifi station: connect to the AP fail
I (28700) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (28700) wifi:state: init -> auth (b0)
I (28750) wifi:state: auth -> assoc (0)
I (28790) wifi:state: assoc -> run (10)
I (31900) wifi:state: run -> init (fc0)
I (31900) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (31900) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (31910) wifi station: retry to connect to the AP
I (31910) wifi station: connect to the AP fail
I (33960) wifi station: retry to connect to the AP
I (33960) wifi station: connect to the AP fail
I (33970) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (33970) wifi:state: init -> auth (b0)
I (34010) wifi:state: auth -> assoc (0)
I (34050) wifi:state: assoc -> run (10)
I (35210) wifi:connected with ErwinAP, aid = 2, channel 2, BW20, bssid = 50:d2:f5:b9:17:60
I (35210) wifi:security: WPA2-PSK, phy: bgn, rssi: -33
I (35230) wifi:pm start, type: 1
I (35260) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (39190) wifi:state: run -> init (fc0)
I (39190) wifi:pm stop, total sleep time: 1475130 us / 3958353 us
I (39190) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (39200) wifi station: retry to connect to the AP
I (39200) wifi station: connect to the AP fail
I (39250) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (39250) wifi:state: init -> auth (b0)
I (39290) wifi:state: auth -> assoc (0)
I (39340) wifi:state: assoc -> run (10)
I (42440) wifi:state: run -> init (fc0)
I (42440) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (42440) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (42450) wifi station: retry to connect to the AP
I (42450) wifi station: connect to the AP fail
I (44500) wifi station: retry to connect to the AP
I (44500) wifi station: connect to the AP fail
I (44510) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (44510) wifi:state: init -> auth (b0)
I (44550) wifi:state: auth -> assoc (0)
I (44590) wifi:state: assoc -> run (10)
I (47700) wifi:state: run -> init (fc0)
I (47700) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (47700) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (47710) wifi station: retry to connect to the AP
I (47710) wifi station: connect to the AP fail
I (49760) wifi station: retry to connect to the AP
I (49760) wifi station: connect to the AP fail
I (49760) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (49770) wifi:state: init -> auth (b0)
I (49810) wifi:state: auth -> assoc (0)
I (49850) wifi:state: assoc -> run (10)
I (52960) wifi:state: run -> init (fc0)
I (52960) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (52960) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (52970) wifi station: retry to connect to the AP
I (52970) wifi station: connect to the AP fail
I (55020) wifi station: retry to connect to the AP
I (55020) wifi station: connect to the AP fail
I (55030) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (55030) wifi:state: init -> auth (b0)
I (55070) wifi:state: auth -> assoc (0)
I (55110) wifi:state: assoc -> run (10)
I (58220) wifi:state: run -> init (fc0)
I (58220) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (58220) wifi:new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
I (58230) wifi station: retry to connect to the AP
I (58230) wifi station: connect to the AP fail
I (60280) wifi station: connect to the AP fail
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 32 (18 by maintainers)
To esp-idf support team: Is it possible to improve the commit messages? I understand it’s closed source library so you don’t need to tell implemenation detail. But please at least let people know the user impact, e.g. generally why the commit improves wifi performance. In additional, since it’s regarding performance, it would be great if you add some performance numbers. Otherwise, the commit “improve wifi performance” really means nothing to people out-side of espressif.
@sagb2015 I’m collecting more information from some devices right now because it looks like esp32’s behavor differs a lot if i use different routers and SDK versions. I’ll post result here in about 2 days.
Ah, I see. I thought v4.1-dev-1635 is newer than v4.1-dev-1633 but it’s not true.
commit 1e47b015633cc5cc66e52798399ee11fd9351f96 (bad) Author: Jack jack@espressif.com Date: Sun Dec 22 19:34:53 2019 +0800
commit 9432ebddf919228244e3c7064c4fc15b50a98bb8 (good) Author: KonstantinKondrashov konstantin@espressif.com Date: Thu Dec 19 21:59:39 2019 +0800