Skip to content

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

Open
ropg wants to merge 2 commits into
dhylands:masterfrom
ropg:master
Open

Fix for issue #27 "Could not enter raw REPL"#161
ropg wants to merge 2 commits into
dhylands:masterfrom
ropg:master

Conversation

@ropg

@ropg ropg commented May 24, 2021

Copy link
Copy Markdown

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

ropg commented May 26, 2021

Copy link
Copy Markdown
Author

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

@jsuijs

jsuijs commented May 8, 2022

Copy link
Copy Markdown

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