Skip to content

SoftAP example code is failing to connect with macbook and android (GIT8266O-877) #1299

@ashkr1

Description

@ashkr1

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

branch: master [up to date till today]
esp8266 ex wifi module
built: mac m3

i am flashing softap code from example as it is, just configured ssid and password through menuconfig.

I (43) boot: ESP-IDF v3.4-110-gd412ac60-dirty 2nd stage bootloader
I (43) boot: compile time 12:57:15
I (44) qio_mode: Enabling default flash chip QIO
I (52) boot: SPI Speed      : 40MHz
I (59) boot: SPI Mode       : QIO
I (65) boot: SPI Flash Size : 2MB
I (71) boot: Partition Table:
I (77) boot: ## Label            Usage          Type ST Offset   Length
I (88) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (99) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (111) boot:  2 factory          factory app      00 00 00010000 000f0000
I (122) boot: End of partition table
I (129) esp_image: segment 0: paddr=0x00010010 vaddr=0x40210010 size=0x54660 (345696) map
0x40210010: _stext at ??:?

I (260) esp_image: segment 1: paddr=0x00064678 vaddr=0x40264670 size=0x0f044 ( 61508) map
I (281) esp_image: segment 2: paddr=0x000736c4 vaddr=0x3ffe8000 size=0x005f8 (  1528) load
I (282) esp_image: segment 3: paddr=0x00073cc4 vaddr=0x40100000 size=0x00080 (   128) load
I (293) esp_image: segment 4: paddr=0x00073d4c vaddr=0x40100080 size=0x055f4 ( 22004) load
I (313) boot: Loaded app from partition at offset 0x10000
I (336) wifi softAP: ESP_WIFI_MODE_AP
I (339) system_api: Base MAC address is not set, read default base MAC address from EFUSE
I (343) system_api: Base MAC address is not set, read default base MAC address from EFUSE
W (355) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
phy_version: 1167.0, 14a6402, Feb 17 2022, 11:32:25, RTOS new
I (541) phy_init: phy ver: 1167_0
W (543) phy_init: saving new calibration data because of checksum failure, mode(2)
I (3347) wifi softAP: eventID: 12
I (3350) wifi softAP: wifi_init_softap finished. SSID:myWifi password:123456789

i ap is creating successfully but i am unable to connect to it. i have erased and flashed code but it is not working.
i am connecting it with my mac and below are the connection logs

2025-05-25 18:33:05.047840+0530 0x4fce56   Default     0x0                  644    0    rapportd: (CoreUtils) [com.apple.CoreUtils:CUWiFiManager] SysMon: WiFi join started: SSID "myWifi"
2025-05-25 18:33:05.047840+0530 0x4fcc8f   Default     0x0                  702    0    sharingd: (CoreUtils) [com.apple.CoreUtils:CUWiFiManager] SysMon: WiFi join started: SSID "myWifi"
2025-05-25 18:33:05.225524+0530 0x4fcac7   Default     0x0                  243    0    airportd: (IO80211) [com.apple.WiFiManager:] Assoc: <airport[243]> Will associate to [ssid=myWifi, bssid=<redacted>, channel=(channel=1, width=20), ibss=no, cc=CN, rssi=-24, rsn=(mcast=tkip, ucast={ aes_ccm tkip }, auths={ psk }, caps=0x0), wpa=(mcast=tkip, ucast={ ccmp tkip }, auths={ psk }), wep=no], hasPassword=1
2025-05-25 18:33:07.108512+0530 0x4fcac7   Default     0x0                  243    0    airportd: (IO80211) [com.apple.WiFiManager:] Info: <airport[243]> <en0> Failed to associate to Wi-Fi network myWifi, returned error code -3905, retrying

Actual behavior (suspected bug)

it is not connected by any device i have checked with open network, with passwords, also with andoid phones, mac, windows it is not connecting with anyone. also not getting more detailed logs as well to get more insites whhat happending in esp. if there is some way to get more detailed logs please let me know.

Error logs or terminal output

I (43) boot: ESP-IDF v3.4-110-gd412ac60-dirty 2nd stage bootloader
I (43) boot: compile time 12:57:15
I (44) qio_mode: Enabling default flash chip QIO
I (52) boot: SPI Speed      : 40MHz
I (59) boot: SPI Mode       : QIO
I (65) boot: SPI Flash Size : 2MB
I (71) boot: Partition Table:
I (77) boot: ## Label            Usage          Type ST Offset   Length
I (88) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (99) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (111) boot:  2 factory          factory app      00 00 00010000 000f0000
I (122) boot: End of partition table
I (129) esp_image: segment 0: paddr=0x00010010 vaddr=0x40210010 size=0x54660 (345696) map
0x40210010: _stext at ??:?

I (260) esp_image: segment 1: paddr=0x00064678 vaddr=0x40264670 size=0x0f044 ( 61508) map
I (281) esp_image: segment 2: paddr=0x000736c4 vaddr=0x3ffe8000 size=0x005f8 (  1528) load
I (282) esp_image: segment 3: paddr=0x00073cc4 vaddr=0x40100000 size=0x00080 (   128) load
I (293) esp_image: segment 4: paddr=0x00073d4c vaddr=0x40100080 size=0x055f4 ( 22004) load
I (313) boot: Loaded app from partition at offset 0x10000
I (336) wifi softAP: ESP_WIFI_MODE_AP
I (339) system_api: Base MAC address is not set, read default base MAC address from EFUSE
I (343) system_api: Base MAC address is not set, read default base MAC address from EFUSE
W (355) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
phy_version: 1167.0, 14a6402, Feb 17 2022, 11:32:25, RTOS new
I (541) phy_init: phy ver: 1167_0
W (543) phy_init: saving new calibration data because of checksum failure, mode(2)
I (3347) wifi softAP: eventID: 12
I (3350) wifi softAP: wifi_init_softap finished. SSID:myWifi password:123456789

Steps to reproduce the behavior

python 3.13
installed rtos requirements file only
make flash command used in softap example project.

Project release version

master

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

MacOS

Operating system version

sonoma

Shell

ZSH

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions