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

Cannot use rshell or ampy #25

Closed
DurandA opened this issue Jan 5, 2019 · 8 comments

Comments

Projects
None yet
5 participants
@DurandA
Copy link

commented Jan 5, 2019

This version of MicroPython is somehow not compatible with rshell nor ampy. These are tools for interacting with MicroPython's filesystem.

This might be related to non-standard debug output that confuse these tools.

If this issue should not be resolved, what is the most practical way to upload scripts to MaixPy?

@wipping

This comment has been minimized.

Copy link
Contributor

commented Jan 15, 2019

The current release of MaixPy does not support most of these features, we are developing another version of MaixPy, this version of MaixPy will support the fat file system. In addition, zmodem can be used to transfer small size script files to the development board.

@DurandA

This comment has been minimized.

Copy link
Author

commented Jan 15, 2019

This is awesome!

@goatchurchprime

This comment has been minimized.

Copy link

commented Jan 17, 2019

@robert-hh

This comment has been minimized.

Copy link
Contributor

commented Jan 19, 2019

zmodem file transfer does not work well. The recommended xshell starts, but does not finish. Teraterm works, but is awfully slow (like 50 chars/second).

@robert-hh

This comment has been minimized.

Copy link
Contributor

commented Jan 20, 2019

I have a patched code (main.c, uart_core.c and mpconfigport.h) here, https://github.com/robert-hh/K210-Stuff, which supports at least some of the ampy commands, like ls and put. ampy get is not supported. It looks as if ampy tries to upload code which fails at MaixPy.

@robert-hh

This comment has been minimized.

Copy link
Contributor

commented Jan 22, 2019

Ampy get fails, because file read on MaixPy returns '' at the end of the file, and the code ampy uploads expects b'' as the EOF signal. The implementation of file.read() fails here for MaixPy. When opened in mode "rb", like ampy does, file.read() should return a bytes object. Instead that, it returns a string.

@robert-hh

This comment has been minimized.

Copy link
Contributor

commented Jan 28, 2019

For ampy and rshell I have made a PR that fixes it (#33). For rshell these changes were required, which are a little bit "hacky":

  • board.name shall return a board name. That can be done by assigning one in boot.py, like
    board.name="maixpy"
  • os.stat("/") shall return a tuple with 0x4000 in the first element. Since nitrogen spiffs does not know directories, that would require a special treatment of that name, and I doubt that it is worth the effort.
@Neutree

This comment has been minimized.

Copy link
Collaborator

commented Mar 2, 2019

we support ampy and GUI tool uPyloader now, but not support rshell yet, see doc

we will close this issue, and if have question you can reopen or create a new one, thanks

@Neutree Neutree closed this Mar 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.