dhylands / rshell

Remote Shell for MicroPython
MIT License
915 stars 131 forks source link

Can't get past "Trying to connect to REPL" when the device is in raw REPL #160

Open aivarannamaa opened 3 years ago

aivarannamaa commented 3 years ago

rshell 0.0.30 gets blocked at Trying to connect to REPL after I've used the device in Thonny (which leaves it in the raw mode).

I can reproduce this with RPi Pico and SparkFun ESP32 Thing on Ubuntu 20.04. Both devices have empty main.py and empty boot.py. Pico has MicroPython 1.15, ESP32 has 1.14.

After connecting with tio and switching to normal REPL, rshell can connect without problems. After switching to raw mode in tio, rshell fails to connect again.

ropg commented 3 years ago

Have a look at https://github.com/dhylands/rshell/issues/27 and my fix. I have a sense there are multiple situations that make the soft reboot not reliably return to raw REPL when it was there already, and then could well be solved by my -s, --suppress-reset command-line option.