Closed nabijaczleweli closed 9 months 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
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).
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.
hi @nabijaczleweli, dou you have more ESP32-S2 boards? Could you please try another one
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.
Closing the issue as per request from the user. Feel free to reopen or create a new issue.
Cheers
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?
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:
More Information.
Also tried on
v5.1-dev
, also tried theprotocols/https_server/simple
example. 200 isWIFI_REASON_BEACON_TIMEOUT
. It's unclear to me how this helps.