← index #17804Issue #16771
Off-topic · high · value 2.445
QUERY · ISSUE

The WiFi of esp32c3 conflicts with ADCBLOCK2

openby dahanziminopened 2025-08-01updated 2026-03-18
bugport-esp32

Port, board and/or hardware

ESP32C3

MicroPython version

MicroPython v1.25.0 on 2025-04-15; LOLIN_C3_MINI with ESP32-C3FH4

Reproduction

import machine,time

def wlan_connect(ssid='MYSSID', password='MYPASS'):
import network
wlan = network.WLAN(network.WLAN.IF_STA)
if not wlan.active() or not wlan.isconnected():
wlan.active(True)
print('connecting to:', ssid)
wlan.connect(ssid, password)
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())

wlan_connect('XXX', '12345678')
adc5 = machine.ADC(machine.Pin(5))
print(adc5.read_u16())

Expected behaviour

MPY: soft reboot
network config: ('192.168.1.64', '255.255.255.0', '192.168.1.1', '192.168.1.1')
65535
MicroPython v1.25.0 on 2025-04-15; LOLIN_C3_MINI with ESP32-C3FH4
Type "help()" for more information.

Observed behaviour

MPY: soft reboot
connecting to: XXX
network config: ('192.168.1.64', '255.255.255.0', '192.168.1.1', '192.168.1.1')
Traceback (most recent call last):
File "main.py", line 18, in <module>
OSError: (-259, 'ESP_ERR_INVALID_STATE')
MicroPython v1.25.0 on 2025-04-15; LOLIN_C3_MINI with ESP32-C3FH4
Type "help()" for more information.

Additional Information

It seems that there is a conflict between the WiFi of esp32c3 and ADCBLOCK2. This error occurs when initializing just after power-on, but it becomes normal after pressing "Ctrl+D". However, it is not completely normal on v1.23.0

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

ESP32-S3-WROOM-N8R2 WiFi Wont Connect

closedby PsuFanopened 2025-02-17updated 2025-03-02
bugport-esp32

Port, board and/or hardware

ESP32-S3-WROOM-N8R2

MicroPython version

MicroPython v1.24.1 on 2024-11-29; Generic ESP32S3 module with ESP32S3

Reproduction

from network import WLAN
sta = WLAN(0)
sta.active(1)
sta.connect('net', 'pass')
sta.ifconfig()

Expected behaviour

('192.168.1.100', '192.168.1.1', '0.0.0.0', '0.0.0.0')

Observed behaviour

I (47019) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (47019) wifi:state: init -> auth (b0)
I (51319) wifi:state: auth -> init (200)
I (51319) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (51319) wifi: STA_DISCONNECTED, reason:2:
I (53729) wifi: STA_DISCONNECTED, reason:205:

Additional Information

This a dual USB C board, I saw closed issues with this, txpower=17 did not work, tried both usb ports, no change. Tried WPA and no security on AP, no change. Other ESP32 and ESP32-S3 boards connect to AP fine. Almost decided to use ESP32 for project but some dumb ass decided to make the HSPI miso pin 12, which is a strapping pin.

Also tried all other 1.24.1 ports in the generic esp32-s3: 4mb flash and Support for Octal-SPIRAM. No errors were seen on any of the ports. This does usually fix WiFi issues. Am able to preform scan() properly. Probably similar to my issue #15602

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