← index #7904Issue #16826
Related · high · value 1.928
QUERY · ISSUE

ESP32 - cannot initialize WLAN

openby eliclementopened 2021-10-15updated 2026-03-12
bugport-esp32

While initializing a WLAN (on an ESP32 GENERIC_SPIRAM board) with:

>>> import network
>>> station = network.WLAN(network.STA_IF)

the following error occurs:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Wifi Unknown Error 0x0101

MicroPython version used (build with ESP-IDF (stable) 4.3.1):

>>> import sys
>>> sys.implementation
(name='micropython', version=(1, 17, 0), mpy=10757)
CANDIDATE · ISSUE

ESP32-S3 Supermini reboots on attempt for Wifi in 'AP' mode

closedby darethehairopened 2025-02-26updated 2025-03-28
bugport-esp32needs-info

Port, board and/or hardware

ESP32-S3 Supermini

MicroPython version

Not sure where I can ask my question...

Attempting to connect to my ESP32-S3 supermini board running Micropython using 'AP' mode results in an immediate disconnection -- but 'STA' mode works just fine.

I am using the following Micropython firmware:

ESP32_GENERIC_S3-FLASH_4M-20241129-v1.24.1.bin

My other full-size ESP32-S3 development boards work just fine.

Reproduction

Connected to MicroPython at /dev/ttyACM0
Use Ctrl-] or Ctrl-x to exit this shell
MicroPython v1.24.1 on 2024-11-29; Generic ESP32S3 module with ESP32S3
Type "help()" for more information.

import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
Truedevice disconnected

Expected behaviour

Note that 'STA' mode works just fine:

Connected to MicroPython at /dev/ttyACM0
Use Ctrl-] or Ctrl-x to exit this shell
MicroPython v1.24.1 on 2024-11-29; Generic ESP32S3 module with ESP32S3
Type "help()" for more information.

import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
True

Observed behaviour

Connected to MicroPython at /dev/ttyACM0
Use Ctrl-] or Ctrl-x to exit this shell
MicroPython v1.24.1 on 2024-11-29; Generic ESP32S3 module with ESP32S3
Type "help()" for more information.

import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
Truedevice disconnected

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied