← index #7904Issue #8635
Related · high · value 3.164
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

Possible bug with WiFi on ESP32-S3

closedby beyonloopened 2022-05-05updated 2024-05-25
port-esp32

Hi all.

I'm using the ESP32-S3-WROOM-1 (N8R2 - 8MB Flash and 2 MB RAM), specifically this kit: ESP32-S3-DEVKITC-1-N8R2

I tested the STA and AP modes, in the both modes ESP32-S3 just congeals/stop to works when the WLAN is activated -> wlan.active(True)

Testing WiFi as STA mode:

>>> import os
>>> os.uname()
(sysname='esp32', nodename='esp32', release='1.18.0', version='v1.18 on 2022-05-05', machine='ESP32S3 module (spiram) with ESP32S3')
>>> 
>>> import network
>>> wlan = network.WLAN(network.STA_IF) # create station interface
>>> wlan.active(True)       # activate the interface
Terminating...
Thanks for using picocom

Testing WiFi as AP mode:

>>> import os
>>> os.uname()
(sysname='esp32', nodename='esp32', release='1.18.0', version='v1.18 on 2022-05-05', machine='ESP32S3 module (spiram) with ESP32S3')
>>> 
>>> import network
>>> ap = network.WLAN(network.AP_IF) # create access-point interface
>>> ap.config(essid='ESP-AP') # set the ESSID of the access point
>>> ap.config(max_clients=10) # set how many clients can connect to the network
>>> ap.active(True)         # activate the interface
Terminating...
Thanks for using picocom

Is it really a bug?

Thank you!

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