QUERY · ISSUE
ESP32 - cannot initialize WLAN
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
Bug with WiFi on ESP32-S3 still there on 1.19
bugport-esp32
I already related this Bug here #8635 (using the MicroPython 1.18), but it still there on 1.19 MicroPython version. I'm using the board GENERIC_S3 (https://micropython.org/download/GENERIC_S3/)
Testing WiFi as STA mode:
>>> import os
>>> os.uname()
(sysname='esp32', nodename='esp32', release='1.19.0', version='v1.19 on 2022-06-16', machine='ESP32S3 module with ESP32S3')
>>> import network
>>> wlan = network.WLAN(network.STA_IF)
>>> wlan.active(True) # MicroPython congeals/stop here.
Ps 1: if I build by myself the firmware (without changes, just compile) WiFi works. Problem looks like be just on the ready compiled binary from MicroPython page.
Edit:
Ps 2: This BUG happen just when using native USB (/dev/ttyACM0). If using the UART (/dev/ttyUSB0) WiFi works fine.
This BUG was confirmed by other users on the #8635