New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rshell fails on M5stack #138
Comments
If you use putty, try the following:
What does the console output look like? |
Did it a few times, got this:
One time I did it a bit fast, and got:
Which looks a lot like what I see with rshell. Wondering if it is a timing thing. |
It looks like this is some type of bug in the M5Stack where it's taking output (perhaps from the previous run) and reading it as input? rshell definitely won't work properly if the soft-reset comes up with all of those syntax errors (i.e. it doesn't arrive at a clean prompt) |
Please have a look at #27 and see if trying with my experimental |
Ha, I have M5Stack Core2, flashed it with UiFlow and it indeed did not work without the -s option, and works fine with it.
(The -n is because something is weird (sometimes) about the terminal when I use colors, ignore that for now...) |
Based on the output here, I'd say that there is some type of corruption on your filesystem. |
It's a fresh copy of whatever M5Stack gives you, on top of 'make erase' More generally: there are lots of reasons for micropython to cause errors on soft-boot that cause it to escalate to hard-reset. I don't think many people test that whatever they flash cleanly unloads for the soft reboot. For example the ili9341 pure python driver does not cleanly unload, and there are many other possible reasons, including someone developing something that doesn't unload properly yet. In all these cases rshell / pyboard (IMHO) need to be resistant to that and be able go to raw REPL in cases where soft-reset does not put them back there. (Alternatively, pyboard should detect that a hard reset has happened and do a Ctrl-A again. But then issuing multiple commands takes forever because it waits for the boot every time, and it's not easy to do if/then with send/expect logic.)
|
Additionally, you might want access to the Python REPL in the state that the thing is in currently, not in the state after a soft-reboot. |
I'm trying to connect to an M5stack Atom Mini. I am using 0.0.28 on windows 10. I get "could not enter raw repl". I'm wondering if it is due to the M5Stack's cutsie logo?
I get:
If I connect with putty, I get the following. Note that it actually stops at
APIKEY
until I hit control-x, then it goes into the cutsie UIFLOW ascii logo and the rest.The text was updated successfully, but these errors were encountered: