espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.9k stars 7.33k forks source link

ESP32-S2 Wi-Fi never connects, stuck in WIFI_REASON_BEACON_TIMEOUT loop (IDFGH-9685) #11026

Closed nabijaczleweli closed 9 months ago

nabijaczleweli commented 1 year ago

Answers checklist.

IDF version.

v5.1-dev-4051-g4f0769d2ed

Operating System used.

Linux

How did you build your project?

Command line with CMake

If you are using Windows, please specify command line type.

None

Development Kit.

Wemos S2 mini (ESP32-S2FN4R2)

Power Supply used.

USB

What is the expected behavior?

Connect to Wi-Fi.

What is the actual behavior?

I (26) boot: ESP-IDF 4f0769d-dirty 2nd stage bootloader

I (26) boot: compile time Mar 20 2023 15:30:13

I (26) boot: chip revision: v0.0

I (26) boot.esp32s2: SPI Speed      : 40MHz

I (27) boot.esp32s2: SPI Mode       : DIO

I (27) boot.esp32s2: SPI Flash Size : 2MB

I (28) boot: Enabling RNG early entropy source...

I (29) boot: Partition Table:

I (29) boot: ## Label            Usage          Type ST Offset   Length

I (30) boot:  0 nvs              WiFi data        01 02 00009000 00006000

I (31) boot:  1 phy_init         RF data          01 01 0000f000 00001000

I (31) boot:  2 factory          factory app      00 00 00010000 00100000

I (32) boot: End of partition table

I (33) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=1fd00h (130304) map

I (69) esp_image: segment 1: paddr=0002fd28 vaddr=3ffc7330 size=002f0h (   752) load

I (69) esp_image: segment 2: paddr=00030020 vaddr=40080020 size=74578h (476536) map

I (198) esp_image: segment 3: paddr=000a45a0 vaddr=3ffc7620 size=02af8h ( 11000) load

I (201) esp_image: segment 4: paddr=000a70a0 vaddr=40024000 size=13324h ( 78628) load

I (236) boot: Loaded app from partition at offset 0x10000

I (236) boot: Disabling RNG early entropy source...

I (238) cache: Instruction cache    : size 8KB, 4Ways, cache line size 32Byte

I (238) cache: Data cache       : size 8KB, 4Ways, cache line size 32Byte

I (239) cpu_start: Pro cpu up.

I (253) cpu_start: Pro cpu start user code

I (253) cpu_start: cpu freq: 160000000 Hz

I (253) cpu_start: Application information:

I (253) cpu_start: Project name:     wifi_station

I (254) cpu_start: App version:      1

I (254) cpu_start: Compile time:     Mar 20 2023 15:52:02

I (255) cpu_start: ELF file SHA256:  d9c27b6c400fa649...

I (256) cpu_start: ESP-IDF:          4f0769d-dirty

I (256) cpu_start: Min chip rev:     v0.0

I (257) cpu_start: Max chip rev:     v1.99 

I (257) cpu_start: Chip rev:         v0.0

I (258) heap_init: Initializing. RAM available for dynamic allocation:

I (259) heap_init: At 3FFCDFE8 len 0002E018 (184 KiB): DRAM

I (259) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM

I (260) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM

I (262) spi_flash: detected chip: generic

I (262) spi_flash: flash io: dio

W (262) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.

I (264) sleep: Configure to isolate all GPIO pins in sleep state

I (265) sleep: Enable automatic switching of GPIO sleep configuration

I (265) app_start: Starting scheduler on CPU0

I (266) main_task: Started on CPU0
I (266) main_task: Calling app_main()
I (266) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (266) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (276) wifi station: ESP_WIFI_MODE_STA
W (286) wifi: [pp.c,3509] wifi driver task: 3ffd6288, prio:23, stack:6656, core=0
W (286) wifi: [ieee80211_ioctl.c,2220] wifi firmware version: 3ad6bf4
W (286) wifi: [ieee80211_ioctl.c,2221] wifi certification version: v7.0
W (286) wifi: [ieee80211_ioctl.c,2222] config NVS flash: enabled
W (286) wifi: [ieee80211_ioctl.c,2223] config nano formating: disabled
W (296) wifi: [esf_buf.c,423] Init data frame dynamic rx buffer num: 32
W (296) wifi: [esf_buf.c,430] Init management frame dynamic rx buffer num: 32
W (296) wifi: [esf_buf.c,437] Init management short buffer num: 32
W (296) wifi: [esf_buf.c,455] Init dynamic tx buffer num: 32
W (296) wifi: [wdev.c,2386] Init static rx buffer size: 1600
W (296) wifi: [wdev.c,2393] Init static rx buffer num: 10
W (296) wifi: [wdev.c,2394] Init dynamic rx buffer num: 32
I (296) wifi_init: rx ba win: 6
I (296) wifi_init: tcpip mbox: 32
I (296) wifi_init: udp mbox: 6
I (296) wifi_init: tcp mbox: 6
I (296) wifi_init: tcp tx win: 5744
I (296) wifi_init: tcp rx win: 5744
I (296) wifi_init: tcp mss: 1440
I (296) wifi_init: WiFi IRAM OP enabled
I (296) wifi_init: WiFi RX IRAM OP enabled
I (306) phy_init: phy_version 2300,d67cf06,Feb 10 2022,10:03:07
W (346) wifi: [hal_mac.c,606] WDEVBBRXHUNG:0xc00000f0, en:1, timer:240(3840 us)
W (346) wifi: [hal_mac.c,608] WDEVBBTXHUNG:0x800000f0, en:1, timer:240(3840 us)
W (346) wifi: [hal_mac.c,610] WDEVBBCCAHUNG:0x800000f0, en:1, timer:240(3840 us)
W (346) wifi: [hal_mac.c,615] WDEVHUNGRECOVER:0xffff0fff, rxHungRecover[en:1, timer:32767 cycles(409 us)], txHungRecover[en:0, timer:4095 cycles(51 us)]
W (346) wifi: [ieee80211.c,546] mode : sta (48:27:e2:51:e2:5c)
W (346) wifi: [ieee80211_sta.c,3014] enable tsf
I (356) wifi station: wifi_init_sta finished.
W (796) wifi: [ieee80211_ht.c,2036] new:<4,1>, old:<1,0>, ap:<255,255>, sta:<4,1>, prof:1
W (806) wifi: [ieee80211_sta.c,204] state: init -> auth (b0)
W (1806) wifi: [ieee80211_sta.c,204] state: auth -> init (200)
W (1806) wifi: [ieee80211_ht.c,2036] new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (1806) wifi station: retry to connect to the AP
I (1806) wifi station: connect to the AP fail
W (1826) wifi: [ieee80211_ht.c,2036] new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
W (1826) wifi: [ieee80211_sta.c,204] state: init -> auth (b0)
W (2826) wifi: [ieee80211_sta.c,204] state: auth -> init (200)
W (2836) wifi: [ieee80211_ht.c,2036] new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (2836) wifi station: retry to connect to the AP
I (2836) wifi station: connect to the AP fail
W (2866) wifi: [ieee80211_ht.c,2036] new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
W (2866) wifi: [ieee80211_sta.c,204] state: init -> auth (b0)
W (3866) wifi: [ieee80211_sta.c,204] state: auth -> init (200)
W (3866) wifi: [ieee80211_ht.c,2036] new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (3876) wifi station: retry to connect to the AP
I (3876) wifi station: connect to the AP fail
I (6296) wifi station: retry to connect to the AP
I (6296) wifi station: connect to the AP fail
W (6326) wifi: [ieee80211_ht.c,2036] new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
W (6336) wifi: [ieee80211_sta.c,204] state: init -> auth (b0)
W (7336) wifi: [ieee80211_sta.c,204] state: auth -> init (200)
W (7336) wifi: [ieee80211_ht.c,2036] new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (7336) wifi station: retry to connect to the AP
I (7336) wifi station: connect to the AP fail
W (7356) wifi: [ieee80211_ht.c,2036] new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
W (7356) wifi: [ieee80211_sta.c,204] state: init -> auth (b0)
W (8356) wifi: [ieee80211_sta.c,204] state: auth -> init (200)
W (8366) wifi: [ieee80211_ht.c,2036] new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (8366) wifi station: connect to the AP fail
I (8366) wifi station: Failed to connect to SSID:ssid, password:passwort
0
1
2
3
4
5

Steps to reproduce.

Build the wifi/getting_started/station example. No matter how you configure wi-fi (default, all features on, static/dynamic buffers, &c.), I reproduce this 100% on two identical devices, connecting to either a TP-Link AP or my phone hotspot.

Debug Logs.

Here's a corresponding log from my TP-Link AP:

Mon Mar 20 16:33:57 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:34:07 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:34:07 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:34:07 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:34:07 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:34:07 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:34:17 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:34:17 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:34:17 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:34:17 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:34:17 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:34:27 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:34:27 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:34:27 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:34:27 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:34:27 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:34:37 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:34:37 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:34:37 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:34:37 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:34:37 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:34:47 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:34:47 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:34:47 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:34:47 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:34:47 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:34:57 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:34:57 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:34:57 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:34:57 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:34:57 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:35:07 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:35:07 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:35:07 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:35:07 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:35:07 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:35:17 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:35:17 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:35:17 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:35:17 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:35:17 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:35:25 2023 daemon.err uhttpd[4539]: iptables: No chain/target/match by that name.

Mon Mar 20 16:35:25 2023 daemon.err uhttpd[4539]: iptables v1.4.21: Couldn't load target `domain_login_rule':No such file or directory

Mon Mar 20 16:35:25 2023 daemon.err uhttpd[4539]:

Mon Mar 20 16:35:25 2023 daemon.err uhttpd[4539]: Try `iptables -h' or 'iptables --help' for more information.

Mon Mar 20 16:35:25 2023 daemon.err uhttpd[4539]: iptables: No chain/target/match by that name.

Mon Mar 20 16:35:25 2023 daemon.err uhttpd[4539]: iptables: No chain/target/match by that name.

Mon Mar 20 16:35:25 2023 user.emerg syslog: tp215,22[31625]:

Mon Mar 20 16:35:27 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:35:27 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:35:27 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:35:27 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:35:27 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

Mon Mar 20 16:35:37 2023 user.err csrMeshGw[6555]:

CsrMeshMuxDemuxFindModelRes : Event : 0xef01, Response Event : 0xffff

Mon Mar 20 16:35:37 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshAddMsgToTxQueue idx: 0x0, Msg Len: 30, Repeat: 2

Mon Mar 20 16:35:37 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 2, length : 30

Mon Mar 20 16:35:37 2023 user.err csrMeshGw[6555]: MSGQ :: CsrMeshGetMsgFromTxQueue curTxIndex : 0, tag count : 1, length : 30

Mon Mar 20 16:35:37 2023 user.err csrMeshGw[6555]:

CsrMeshMsgQRead: qId=0 errno=42, No message of desired type!!!!

More Information.

Also tried on v5.1-dev, also tried the protocols/https_server/simple example. 200 is WIFI_REASON_BEACON_TIMEOUT. It's unclear to me how this helps.

Xiehanxin commented 1 year ago

hi, could you please try release/v4.4, master or v5.1 is still under development, if you want to develop the ESP32-S2, v4.4 is enough. and make sure the wifi is 2.4G not 5G

nabijaczleweli commented 1 year ago

From the release/v4.4 branch:

I (21) boot: ESP-IDF v4.4.4-281-g48b3f236d3-dirty 2nd stage bootloader

I (21) boot: compile time 11:52:13

I (21) boot: chip revision: v0.0

I (25) boot.esp32s2: SPI Speed      : 80MHz

I (30) boot.esp32s2: SPI Mode       : DIO

I (35) boot.esp32s2: SPI Flash Size : 2MB

I (39) boot: Enabling RNG early entropy source...

I (45) boot: Partition Table:

I (48) boot: ## Label            Usage          Type ST Offset   Length

I (56) boot:  0 nvs              WiFi data        01 02 00009000 00006000

I (63) boot:  1 phy_init         RF data          01 01 0000f000 00001000

I (71) boot:  2 factory          factory app      00 00 00010000 00100000

I (78) boot: End of partition table

I (82) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=13064h ( 77924) map

I (107) esp_image: segment 1: paddr=0002308c vaddr=3ffc4910 size=02c8ch ( 11404) load

I (109) esp_image: segment 2: paddr=00025d20 vaddr=40022000 size=0a2f8h ( 41720) load

I (123) esp_image: segment 3: paddr=00030020 vaddr=40080020 size=6638ch (418700) map

I (208) esp_image: segment 4: paddr=000963b4 vaddr=4002c2f8 size=08618h ( 34328) load

I (225) boot: Loaded app from partition at offset 0x10000

I (225) boot: Disabling RNG early entropy source...

I (237) cache: Instruction cache    : size 8KB, 4Ways, cache line size 32Byte

I (237) cpu_start: Pro cpu up.

I (255) cpu_start: Pro cpu start user code

I (255) cpu_start: cpu freq: 160000000

I (255) cpu_start: Application information:

I (258) cpu_start: Project name:     wifi_station

I (264) cpu_start: App version:      v4.4.4-281-g48b3f236d3-dirty

I (270) cpu_start: Compile time:     Mar 21 2023 11:52:07

I (276) cpu_start: ELF file SHA256:  1fb5f0032ce72c7f...

I (282) cpu_start: ESP-IDF:          v4.4.4-281-g48b3f236d3-dirty

I (289) cpu_start: Min chip rev:     v0.0

I (294) cpu_start: Max chip rev:     v1.99 

I (299) cpu_start: Chip rev:         v0.0

I (303) heap_init: Initializing. RAM available for dynamic allocation:

I (311) heap_init: At 3FFCB098 len 00030F68 (195 KiB): DRAM

I (317) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM

I (323) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM

I (330) spi_flash: detected chip: generic
I (334) spi_flash: flash io: dio
W (338) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.

I (351) cpu_start: Starting scheduler on PRO CPU.
I (363) wifi station: ESP_WIFI_MODE_STA
I (373) wifi:wifi driver task: 3ffd3654, prio:23, stack:6656, core=0
I (373) system_api: Base MAC address is not set
I (373) system_api: read default base MAC address from EFUSE
I (383) wifi:wifi firmware version: bd1de02
I (383) wifi:wifi certification version: v7.0
I (383) wifi:config NVS flash: enabled
I (393) wifi:config nano formating: disabled
I (393) wifi:Init data frame dynamic rx buffer num: 32
I (403) wifi:Init management frame dynamic rx buffer num: 32
I (403) wifi:Init management short buffer num: 32
I (413) wifi:Init dynamic tx buffer num: 32
I (413) wifi:Init static rx buffer size: 1600
I (413) wifi:Init static rx buffer num: 10
I (423) wifi:Init dynamic rx buffer num: 32
I (423) wifi_init: rx ba win: 6
I (433) wifi_init: tcpip mbox: 32
I (433) wifi_init: udp mbox: 6
I (433) wifi_init: tcp mbox: 6
I (443) wifi_init: tcp tx win: 5744
I (443) wifi_init: tcp rx win: 5744
I (443) wifi_init: tcp mss: 1440
I (453) wifi_init: WiFi IRAM OP enabled
I (453) wifi_init: WiFi RX IRAM OP enabled
I (463) phy_init: phy_version 2300,d67cf06,Feb 10 2022,10:03:07
I (503) wifi:mode : sta (48:27:e2:51:e2:5c)
I (503) wifi:enable tsf
I (503) wifi station: wifi_init_sta finished.
I (883) wifi:new:<4,1>, old:<1,0>, ap:<255,255>, sta:<4,1>, prof:1
I (883) wifi:state: init -> auth (b0)
I (1883) wifi:state: auth -> init (200)
I (1883) wifi:new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (1893) wifi station: retry to connect to the AP
I (1893) wifi station: connect to the AP fail
I (1933) wifi:new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
I (1933) wifi:state: init -> auth (b0)
I (2933) wifi:state: auth -> init (200)
I (2933) wifi:new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (2933) wifi station: retry to connect to the AP
I (2933) wifi station: connect to the AP fail
I (3013) wifi:new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
I (3013) wifi:state: init -> auth (b0)
I (4013) wifi:state: auth -> init (200)
I (4013) wifi:new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (4023) wifi station: retry to connect to the AP
I (4023) wifi station: connect to the AP fail
I (6433) wifi station: retry to connect to the AP
I (6433) wifi station: connect to the AP fail
I (6493) wifi:new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
I (6493) wifi:state: init -> auth (b0)
I (7493) wifi:state: auth -> init (200)
I (7503) wifi:new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (7503) wifi station: retry to connect to the AP
I (7503) wifi station: connect to the AP fail
I (7543) wifi:new:<4,1>, old:<4,0>, ap:<255,255>, sta:<4,1>, prof:1
I (7543) wifi:state: init -> auth (b0)
I (8543) wifi:state: auth -> init (200)
I (8543) wifi:new:<4,0>, old:<4,1>, ap:<255,255>, sta:<4,1>, prof:1
I (8543) wifi station: connect to the AP fail
I (8543) wifi station: Failed to connect to SSID:ssid, password:passwort

I get this both on my dual-band (above) and 2.4G-only network (2.4.log).

nabijaczleweli commented 1 year ago

I got Luatos ESP32C3-CORE (ESP32-C3 v0.3) boards and can confirm the same program (rebuilt, of course) works there, both v4.4 and master.

Xiehanxin commented 1 year ago

hi @nabijaczleweli, dou you have more ESP32-S2 boards? Could you please try another one

nabijaczleweli commented 1 year ago

Unfortunately not, I just got two Wemos S2 minis, and am not particularly keen on buying more right now. I'm happy to put this down to "broken boards" – it appears that they function well for everyone else, and the same code versions work with the ESP32-C3. If I ever get more S2 boards I'll post an update, but feel free to close this issue for now.

Indastri commented 9 months ago

Closing the issue as per request from the user. Feel free to reopen or create a new issue.

Cheers