-
Notifications
You must be signed in to change notification settings - Fork 18
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
retry to enter raw repl #40
base: master
Are you sure you want to change the base?
Conversation
microfs.py
Outdated
serial.write(b"\r\x01") | ||
flush_to_msg(serial, raw_repl_msg) | ||
break | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about?
except Exception as ex:
if i == 2:
raise ex
Thus ensuring the exception is raised, even after the three attempts.
Do you also have the info about the exception raised when it fails? It would be really useful to understand what the root of the problem is. Lines 68 to 72 in 3c28361
|
I added some logging to the flush_to_msg function
I don't know, if it is some timing issue |
Thanks @gschaden, that is really useful! It's a bit odd though, the microFS code is meant to read serial data until it receives Is the string in this line of the log:
Generated by this line of code? raise IOError("Could not enter raw REPL. %s" % data) I think it must be, as it's the only line of code in microFS using the And if that is the case, it suggests that the (b'hello\r\nMicroPython v1.18 on 2022-01-17; 4MB/OTA module with ESP32\r\nType "help()" for more information.\r\n>>> ',b'raw REPL; CTRL-B to exit\r\n>') But if that was true, then the Lines 66 to 72 in db5e7b2
Something doesn't quite add up with my analysis here, so I'm not too sure where the root of the problem lays yet. |
The other log lines Also, if >>> data = (b'hello\r\nMicroPython v1.18 on 2022-01-17; 4MB/OTA module with ESP32\r\nType "help()" for more information.\r\n>>> ',b'raw REPL; CTRL-B to exit\r\n>')
>>> print("Could not enter raw REPL. %s" % data)
Traceback (most recent call last):
File "<input>", line 1, in <module>
print("Could not enter raw REPL. %s" % data)
TypeError: not all arguments converted during string formatting @gschaden can we compare the log of successfull and unsuccessfull run? Is the data type of the variable |
I had a problem, while listing the fs in mu-editor. They asked me to send the change request to the upstream module.
retry to enter raw repl when listing fs