Skip to content
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

Fix for issue #27 "Could not enter raw REPL" #161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ropg
Copy link

@ropg ropg commented May 24, 2021

Two fixes, each in its own commit.

  • First off, all serial connections were made in the exception handler for socket.gaierror because the port was first tried as an ip-address/DNS name. I made that pass and then continue, which leads to far less confusing stack traces.

  • Second, I introduce the command-line option -s, --suppress-reset to both pyboard and rshell to fix issue ESP32 "Could not enter raw repl" #27 "Could not enter raw REPL". The rationale for doing it this way is in the issue, so I won't duplicate here.

Serial connections were running as a prolonged exception handler for socket.gaierror because the code first tries it as an ip-address. This led to confusing stack traces. This fix gives that error a pass and then continues.
@ropg ropg changed the title Fix for the Fix for issue #27 "Could not enter raw REPL" May 24, 2021
@ropg
Copy link
Author

ropg commented May 26, 2021

I added the necessary changes to README.rst and redid with push -f so it's still just the two commits...

@jsuijs
Copy link

jsuijs commented May 8, 2022

Thanks!
rshell can't connect to my Maix board when a program is starts on reset. This option and a single reset button push button fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants