WebREPL setup fails in PicoW when no boot.py exists on device
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.
Arduino Nano Connect RP2040: Webrepl fails.
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