Open youngsu999 opened 5 years ago
I found issues such as #19 #41 #43 and #69 seems to be related. Especially for #19, it is same issue except board model.
Hiya! We are discontinuing support for ampy, and will no longer be maintaining it. We are leaving this repository available for continued use. If you would like to take over supporting it, please contact us on the Adafruit Discord server and we can transfer the repository to you. If you wish to continue developing it on your own, please fork the repository.
I want to share my experience how I (may be temporary) solve the
ampy
command pending issue.Here is my problem and temporary solution for
ampy
command pending issue.My environment
SW:
HW:
Problem
amp
commands such asls
,put
,get
. Sometimes it success (onlyls
) but most of execution Fails.Finding the issue
I checkout the source and add the print on library and searched for the point where code was pending. I Found that the code is pending at the line
189
ofpyboard.py
. The code isdata = self.read_until(1, b'raw REPL; CTRL-B to exit\r\n>')
.I also inspected the inside of
self.read_util
function but the most suspicious line was a line before. (self.serial.write(b'\r\x01') # ctrl-A: enter raw REPL
). I think For some reason, The develop board missed Ctl-A character and it may fail to enterraw repl mode
.So I modified the function as follows:
And the commands works well. My opinion is that many pending issues are came from failing to enter the
raw_repl mode
.It is just temporal patch and until now i have no idea more proper way to solve it.