Wifi Connect does not work after flashing => but after manual reset and then no debugging (IDFGH-13603)
Answers checklist.
- [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- [X] I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.3
Espressif SoC revision.
ESP32-S3
Operating System used.
Windows
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
CMD
Development Kit.
ESP32-S3 WROOM
Power Supply used.
USB
What is the expected behavior?
After Flashing and starting debugging the ESP32 should connect to the AP as Station.
What is the actual behavior?
the init-> auth process will fail until a RESET will occur.
After pressing reset the connect and wifi driver will work. But then debugging over native USB is not possible anymore.
Steps to reproduce.
- use idf/examples/wifi/softap_sta
- build
- debug and run
Debug Logs.
Log after Flash and Debug Run
I (33) boot: ESP-IDF v5.3 2nd stage bootloader
I (33) boot: compile time Sep 3 2024 11:27:20
I (33) boot: Multicore bootloader
I (36) boot: chip revision: v0.2
I (40) boot.esp32s3: Boot SPI Speed : 80MHz
I (45) boot.esp32s3: SPI Mode : DIO
I (49) boot.esp32s3: SPI Flash Size : 2MB
I (54) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (63) boot: ## Label Usage Type ST Offset Length
I (70) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (85) boot: 2 factory factory app 00 00 00010000 00100000
I (93) boot: End of partition table
I (97) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=2061ch (132636) map
I (129) esp_image: segment 1: paddr=00030644 vaddr=3fc99100 size=048c4h ( 18628) load
I (134) esp_image: segment 2: paddr=00034f10 vaddr=40374000 size=0b108h ( 45320) load
I (145) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=8237ch (533372) map
I (242) esp_image: segment 4: paddr=000c23a4 vaddr=4037f108 size=09fc0h ( 40896) load
I (260) boot: Loaded app from partition at offset 0x10000
I (260) boot: Disabling RNG early entropy source...
I (271) cpu_start: Multicore app
I (280) cpu_start: Pro cpu start user code
I (280) cpu_start: cpu freq: 160000000 Hz
I (280) app_init: Application information:
I (283) app_init: Project name: softap_sta
I (288) app_init: App version: 1
I (293) app_init: Compile time: Sep 3 2024 11:27:07
I (299) app_init: ELF file SHA256: 0bf8be5c9...
I (304) app_init: ESP-IDF: v5.3
I (309) efuse_init: Min chip rev: v0.0
I (313) efuse_init: Max chip rev: v0.99
I (318) efuse_init: Chip rev: v0.2
I (323) heap_init: Initializing. RAM available for dynamic allocation:
I (330) heap_init: At 3FCA15C8 len 00048148 (288 KiB): RAM
I (337) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (343) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (349) heap_init: At 600FE100 len 00001EE8 (7 KiB): RTCRAM
I (356) spi_flash: detected chip: gd
I (359) spi_flash: flash io: dio
W (363) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (377) sleep: Configure to isolate all GPIO pins in sleep state
I (383) sleep: Enable automatic switching of GPIO sleep configuration
I (391) main_task: Started on CPU0
I (411) main_task: Calling app_main()
I (621) pp: pp rom version: e7ae62f
I (621) net80211: net80211 rom version: e7ae62f
I (631) wifi:wifi driver task: 3fcab618, prio:23, stack:6656, core=0
I (641) wifi:wifi firmware version: 0caa81945
I (641) wifi:wifi certification version: v7.0
I (641) wifi:config NVS flash: enabled
I (641) wifi:config nano formating: disabled
I (651) wifi:Init data frame dynamic rx buffer num: 32
I (651) wifi:Init static rx mgmt buffer num: 5
I (651) wifi:Init management short buffer num: 32
I (661) wifi:Init dynamic tx buffer num: 32
I (661) wifi:Init static tx FG buffer num: 2
I (671) wifi:Init static rx buffer size: 1600
I (671) wifi:Init static rx buffer num: 10
I (671) wifi:Init dynamic rx buffer num: 32
I (681) wifi_init: rx ba win: 6
I (681) wifi_init: accept mbox: 6
I (691) wifi_init: tcpip mbox: 32
I (691) wifi_init: udp mbox: 6
I (691) wifi_init: tcp mbox: 6
I (701) wifi_init: tcp tx win: 5760
I (701) wifi_init: tcp rx win: 5760
I (711) wifi_init: tcp mss: 1440
I (711) wifi_init: WiFi IRAM OP enabled
I (711) wifi_init: WiFi RX IRAM OP enabled
I (731) WiFi SoftAP: ESP_WIFI_MODE_AP
I (731) WiFi SoftAP: wifi_init_softap finished. SSID:TEST_SSID password:12345678 channel:1
I (731) WiFi Sta: ESP_WIFI_MODE_STA
I (761) WiFi Sta: wifi_init_sta finished.
I (761) phy_init: phy_version 680,a6008b2,Jun 4 2024,16:41:10
W (761) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration
W (811) phy_init: saving new calibration data because of checksum failure, mode(2)
I (881) wifi:mode : sta (f0:f5:bd:43:5d:b4) + softAP (f0:f5:bd:43:5d:b5)
I (881) wifi:enable tsf
I (881) wifi:Total power save buffer number: 16
I (881) wifi:Init max length of beacon: 752/752
I (881) wifi:Init max length of beacon: 752/752
I (891) WiFi Sta: Station started
I (891) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (4201) wifi:ap channel adjust o:1,1 n:6,2
I (4201) wifi:new:<6,0>, old:<1,1>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (4201) wifi:state: init -> auth (0xb0)
I (5211) wifi:state: auth -> init (0x200)
I (5211) wifi:new:<6,0>, old:<6,0>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (5211) wifi:new:<6,2>, old:<6,0>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (5221) wifi:state: init -> auth (0xb0)
I (6221) wifi:state: auth -> init (0x200)
I (6221) wifi:new:<6,0>, old:<6,2>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (6221) wifi:new:<6,2>, old:<6,0>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (6231) wifi:state: init -> auth (0xb0)
I (7231) wifi:state: auth -> init (0x200)
I (7231) wifi:new:<6,0>, old:<6,2>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (7231) wifi:new:<6,2>, old:<6,0>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (7241) wifi:state: init -> auth (0xb0)
I (8241) wifi:state: auth -> init (0x200)
I (8241) wifi:new:<6,0>, old:<6,2>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (8241) wifi:new:<6,2>, old:<6,0>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (8251) wifi:state: init -> auth (0xb0)
I (9251) wifi:state: auth -> init (0x200)
I (9251) wifi:new:<6,0>, old:<6,2>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (9251) wifi:new:<6,2>, old:<6,0>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (9261) wifi:state: init -> auth (0xb0)
I (10261) wifi:state: auth -> init (0x200)
I (10261) wifi:new:<6,0>, old:<6,2>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
After pressing Reset:
I (27) boot: ESP-IDF v5.3 2nd stage bootloader
I (27) boot: compile time Sep 3 2024 11:27:20
I (27) boot: Multicore bootloader
I (30) boot: chip revision: v0.2
I (34) boot.esp32s3: Boot SPI Speed : 80MHz
I (38) boot.esp32s3: SPI Mode : DIO
I (43) boot.esp32s3: SPI Flash Size : 2MB
I (48) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (57) boot: ## Label Usage Type ST Offset Length
I (64) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (71) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (79) boot: 2 factory factory app 00 00 00010000 00100000
I (86) boot: End of partition table
I (91) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=2061ch (132636) map
I (123) esp_image: segment 1: paddr=00030644 vaddr=3fc99100 size=048c4h ( 18628) load
I (132) esp_image: segment 2: paddr=00034f10 vaddr=40374000 size=0b108h ( 45320) load
I (142) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=8237ch (533372) map
I (238) esp_image: segment 4: paddr=000c23a4 vaddr=4037f108 size=09fc0h ( 40896) load
I (261) boot: Loaded app from partition at offset 0x10000
I (261) boot: Disabling RNG early entropy source...
I (273) cpu_start: Multicore app
I (282) cpu_start: Pro cpu start user code
I (283) cpu_start: cpu freq: 160000000 Hz
I (283) app_init: Application information:
I (285) app_init: Project name: softap_sta
I (291) app_init: App version: 1
I (295) app_init: Compile time: Sep 3 2024 11:27:07
I (301) app_init: ELF file SHA256: 0bf8be5c9...
I (306) app_init: ESP-IDF: v5.3
I (311) efuse_init: Min chip rev: v0.0
I (316) efuse_init: Max chip rev: v0.99
I (321) efuse_init: Chip rev: v0.2
I (325) heap_init: Initializing. RAM available for dynamic allocation:
I (333) heap_init: At 3FCA15C8 len 00048148 (288 KiB): RAM
I (339) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (345) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (351) heap_init: At 600FE100 len 00001EE8 (7 KiB): RTCRAM
I (358) spi_flash: detected chip: gd
I (361) spi_flash: flash io: dio
W (365) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (379) sleep: Configure to isolate all GPIO pins in sleep state
I (386) sleep: Enable automatic switching of GPIO sleep configuration
I (393) main_task: Started on CPU0
I (413) main_task: Calling app_main()
I (433) pp: pp rom version: e7ae62f
I (433) net80211: net80211 rom version: e7ae62f
I (453) wifi:wifi driver task: 3fcab618, prio:23, stack:6656, core=0
I (463) wifi:wifi firmware version: 0caa81945
I (463) wifi:wifi certification version: v7.0
I (463) wifi:config NVS flash: enabled
I (463) wifi:config nano formating: disabled
I (463) wifi:Init data frame dynamic rx buffer num: 32
I (473) wifi:Init static rx mgmt buffer num: 5
I (473) wifi:Init management short buffer num: 32
I (483) wifi:Init dynamic tx buffer num: 32
I (483) wifi:Init static tx FG buffer num: 2
I (483) wifi:Init static rx buffer size: 1600
I (493) wifi:Init static rx buffer num: 10
I (493) wifi:Init dynamic rx buffer num: 32
I (503) wifi_init: rx ba win: 6
I (503) wifi_init: accept mbox: 6
I (503) wifi_init: tcpip mbox: 32
I (513) wifi_init: udp mbox: 6
I (513) wifi_init: tcp mbox: 6
I (523) wifi_init: tcp tx win: 5760
I (523) wifi_init: tcp rx win: 5760
I (523) wifi_init: tcp mss: 1440
I (533) wifi_init: WiFi IRAM OP enabled
I (533) wifi_init: WiFi RX IRAM OP enabled
I (543) WiFi SoftAP: ESP_WIFI_MODE_AP
I (553) WiFi SoftAP: wifi_init_softap finished. SSID:TEST_AP password:12345678 channel:1
I (553) WiFi Sta: ESP_WIFI_MODE_STA
I (563) WiFi Sta: wifi_init_sta finished.
I (563) phy_init: phy_version 680,a6008b2,Jun 4 2024,16:41:10
W (613) phy_init: saving new calibration data because of checksum failure, mode(0)
I (673) wifi:mode : sta (f0:f5:bd:43:5d:b4) + softAP (f0:f5:bd:43:5d:b5)
I (673) wifi:enable tsf
I (673) wifi:Total power save buffer number: 16
I (673) wifi:Init max length of beacon: 752/752
I (683) wifi:Init max length of beacon: 752/752
I (683) WiFi Sta: Station started
I (693) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (3513) wifi:ap channel adjust o:1,1 n:6,2
I (3513) wifi:new:<6,0>, old:<1,1>, ap:<6,2>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
I (3523) wifi:state: init -> auth (0xb0)
I (3533) wifi:state: auth -> assoc (0x0)
I (3543) wifi:state: assoc -> run (0x10)
I (3563) wifi:connected with TEST_SSID, aid = 1, channel 6, BW20, bssid = 66:d9:e7:65:ad:ff
I (3563) wifi:security: WPA2-PSK, phy: bgn, rssi: -68
I (3573) wifi:pm start, type: 1
I (3573) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3573) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (3583) wifi:<ba-add>idx:0 (ifx:0, 66:d9:e7:65:ad:ff), tid:0, ssn:0, winSize:64
I (3653) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (4583) WiFi Sta: Got IP:192.168.100.135
I (4583) esp_netif_handlers: sta ip: 192.168.100.135, mask: 255.255.255.0, gw: 192.168.100.254
I (4583) WiFi Sta: connected to ap SSID:TEST_SSID password:12345678
W (4593) esp_netif_lwip: napt disabled on esp_netif:0x3fcb1920
I (4593) main_task: Returned from app_main()
More Information.
No response
@hf81-ble sorry for late reply, I can not reproduce your issue in my env can you reproduce your issue ,if can could you get another s3 and test it? from the log,we can not get more information
@hf81-ble can you provid more info about your device,Did you buy your s3 from official?
Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates. Thanks for using our Espressif product!