← index #11661Issue #15508
Related · high · value 3.853
QUERY · ISSUE

WebREPL setup fails in PicoW when no boot.py exists on device

openby badger200opened 2023-05-30updated 2024-09-02
bug

import webrepl_setup fails by default unless the user happens to have created a boot.py file on device. Creating an empty boot.py makes import webrepl_setup succeed and ask for a password and reboot.

Pico W
MicroPython latest release 1.20

Getting WebREPL running on my PicoW had a ton of user friction, we need to make it so it's a lot more straightforward, perhaps by enhancing webrepl_setup to ask if they want to auto connect to WiFi, and ask for SSID/pass. Since WebREPL is useless without a WiFi connection.

CANDIDATE · ISSUE

Arduino Nano Connect RP2040: Webrepl fails.

openby robert-hhopened 2024-07-20updated 2024-07-23
bugport-rp2

Port, board and/or hardware

RP2, Board Arduino Nano Connect 2040 with NINA W102 module.

MicroPython version

MicroPython v1.24.0-preview.118.g5f3ecc29f on 2024-07-20; Arduino Nano RP2040 Connect with RP2040

Reproduction

Configure Webrepl, enable Wifi and start Webrepl at the board. Then connect with webrepl from a PC and enter the password. Content of main.py:

import station
import webrepl
webrepl.start()

station.py just starts wifi. webrepl_cfg.py and an empty boot.py exist.

Expected behaviour

Working webrepl

Observed behaviour

Webrepl works with firmware v1.23.0.
With v1.24.0-preview.118 (and earlier) the board locks up after entering the Webrepl password. Needs a hardware reset or power cycle to recover. Log:

network config: ('10.0.0.179', '255.255.255.0', '10.0.0.240', '10.0.0.240')
WebREPL server started on http://10.0.0.179:8266/
Started webrepl in normal mode
MicroPython v1.24.0-preview.118.g5f3ecc29f on 2024-07-20; Arduino Nano RP2040 Connect with RP2040
Type "help()" for more information.
>>> 
WebREPL connection from: ('10.0.0.150', 53812)
FATAL: uncaught exception 

UDP and TCP connections work, tested with iperf3.py.

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