esp32 IDF 5.3.1 example SoftAP_STA can't work (IDFGH-14197)
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.
General issue report
The SoftAP_STA can't work in the IDF 5.3.1, but it can work in the IDF 5.2.1,I've checked it.I was in the process of migrating my project from IDF5.2.1 to 5.3.1 and discovered this issue.
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:7176 load:0x40078000,len:15564 ho 0 tail 12 room 4 load:0x40080400,len:4 0x40080400: _init at ??:?
load:0x40080404,len:3904 entry 0x40080640 I (31) boot: ESP-IDF HEAD-HASH-NOTFOUND 2nd stage bootloader I (31) boot: compile time Dec 9 2024 09:35:25 I (32) boot: Multicore bootloader I (36) boot: chip revision: v3.1 I (40) boot.esp32: SPI Speed : 40MHz I (45) boot.esp32: SPI Mode : DIO I (49) boot.esp32: SPI Flash Size : 2MB I (54) boot: Enabling RNG early entropy source... I (59) 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=3f400020 size=1f784h (128900) map I (150) esp_image: segment 1: paddr=0002f7ac vaddr=3ffb0000 size=0086ch ( 2156) load I (151) esp_image: segment 2: paddr=00030020 vaddr=400d0020 size=84348h (541512) map I (341) esp_image: segment 3: paddr=000b4370 vaddr=3ffb086c size=03664h ( 13924) load I (346) esp_image: segment 4: paddr=000b79dc vaddr=40080000 size=1734ch ( 95052) load I (395) boot: Loaded app from partition at offset 0x10000 I (396) boot: Disabling RNG early entropy source... I (408) cpu_start: Multicore app I (416) cpu_start: Pro cpu start user code I (416) cpu_start: cpu freq: 160000000 Hz I (416) app_init: Application information: I (419) app_init: Project name: ap_sta I (424) app_init: App version: 1 I (428) app_init: Compile time: Dec 9 2024 09:35:02 I (434) app_init: ELF file SHA256: 8325646b5... I (439) app_init: ESP-IDF: HEAD-HASH-NOTFOUND I (445) efuse_init: Min chip rev: v0.0 I (450) efuse_init: Max chip rev: v3.99 I (455) efuse_init: Chip rev: v3.1 I (460) heap_init: Initializing. RAM available for dynamic allocation: I (467) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (473) heap_init: At 3FFB8110 len 00027EF0 (159 KiB): DRAM I (479) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (485) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (492) heap_init: At 4009734C len 00008CB4 (35 KiB): IRAM I (500) spi_flash: detected chip: generic I (503) spi_flash: flash io: dio W (507) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (521) main_task: Started on CPU0 I (531) main_task: Calling app_main() I (581) wifi:wifi driver task: 3ffbfedc, prio:23, stack:6656, core=0 I (591) wifi:wifi firmware version: ccaebfa I (591) wifi:wifi certification version: v7.0 I (591) wifi:config NVS flash: enabled I (591) wifi:config nano formating: disabled I (601) wifi:Init data frame dynamic rx buffer num: 32 I (601) wifi:Init static rx mgmt buffer num: 5 I (611) wifi:Init management short buffer num: 32 I (611) wifi:Init dynamic tx buffer num: 32 I (621) wifi:Init static rx buffer size: 1600 I (621) wifi:Init static rx buffer num: 10 I (621) wifi:Init dynamic rx buffer num: 32 I (631) wifi_init: rx ba win: 6 I (631) wifi_init: accept mbox: 6 I (641) wifi_init: tcpip mbox: 32 I (641) wifi_init: udp mbox: 6 I (641) wifi_init: tcp mbox: 6 I (651) wifi_init: tcp tx win: 5760 I (651) wifi_init: tcp rx win: 5760 I (661) wifi_init: tcp mss: 1440 I (661) wifi_init: WiFi IRAM OP enabled I (661) wifi_init: WiFi RX IRAM OP enabled I (671) WiFi SoftAP: ESP_WIFI_MODE_AP I (681) WiFi SoftAP: wifi_init_softap finished. SSID:ESP32-IDF password:esp123456 channel:11 I (681) WiFi Sta: ESP_WIFI_MODE_STA I (691) WiFi Sta: wifi_init_sta finished. I (691) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08 I (781) wifi:mode : sta (d4:d4:da:e5:42:7c) + softAP (d4:d4:da:e5:42:7d) I (781) wifi:enable tsf I (791) wifi:Total power save buffer number: 16 I (791) wifi:Init max length of beacon: 752/752 I (791) wifi:Init max length of beacon: 752/752 I (801) WiFi Sta: Station started I (801) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1 I (3641) wifi:ap channel adjust o:11,2 n:6,2 I (3641) wifi:new:<6,0>, old:<11,2>, ap:<6,2>, sta:<6,0>, prof:11, snd_ch_cfg:0x0 I (3641) wifi:state: init -> auth (0xb0) I (3681) wifi:state: auth -> assoc (0x0) I (3691) wifi:state: assoc -> run (0x10) I (3711) wifi:connected with TP-AMU-200, aid = 17, channel 6, BW20, bssid = 78:60:5b:b7:6f:7b I (3711) wifi:security: WPA2-PSK, phy: bgn, rssi: -44 I (3711) wifi:pm start, type: 1
I (3711) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3731) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (3981) wifi:
This is the log of softap_sta, showing that WiFi is not available
This softap_sta example does not work with vscode IDF plugin 5.3.1 and 5.2.3 esp32, showing that the network is not working properly, 5.2.1 works with platformio, my esp32 is esp32 wroom
I (11730) WiFi SoftAP: Station 62:8f:d9:26:f5:2e joined, AID=1
I (11760) wifi:
This can be executed on ESP32-U4WDH, but not on ESP32-D0WD-V3
What happens if you disable this in menuconfig?
@MATACE sorry for late reply from the log, the station(62:8f:d9:26:f5:2e) which connected to the softap decide to leave . the reason may be the station ping fail or other reason.
@MATACE the root cause need more detail info ,could you provide the wifi wireshark capture?
@MATACE Could you provide the wireshark log?
@MATACE Thanks for reporting, can you please help provide more details? Thanks.
Thanks for reporting, will close due to inactivity, feel free to reopen if the issue still happens.