The WiFi of esp32c3 conflicts with ADCBLOCK2
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
ESP32-S3 FH4R2 v0.2 No WiFi
Port, board and/or hardware
Custom Made ESP32-S3 Circuit Board (lol)
MicroPython version
v1.23.0_4M_FLASH
Reproduction
from network import WLAN
sta = WLAN(0)
sta.active(1)
sta.connect('xxx','xxx')
sta.ifconfig()
Expected behaviour
No response
Observed behaviour
('0.0.0.0', xxxx)
Additional Information
Hey, I was wondering if you guys could point me at anything to try to get the WiFi connecting. I tried the ESP32-S3 generic and octal spiram builds which both had bootup warnings and wifi init failures before finding the correct 4MB flash version. This cleared the boot errors and WiFi init errors but connect does nothing. To be clear, this is a custom circuit board with a custom WiFi antenna circuit, its entirely possible I did not connect it properly. However, sta.scan() does return all of my available networks. I believe my signal is in the -75 ballpark. I have tried to enable logging in boot.py but no additional serial was printed when trying to connect. I also attempted to see if it was working with Arduino but have not been able to get it to boot. I just get the final line: entry 0x_______ and nothing after until it eventually reboots.
Code of Conduct
Yes, I agree