mpremote - Filetransfer during repl session #13091
Replies: 5 comments 5 replies
-
Have you tried mpremote with resume option? https://docs.micropython.org/en/latest/reference/mpremote.html#mpremote-command-resume
e.g. |
Beta Was this translation helpful? Give feedback.
-
Ok. Thank you very much for your explanations. I had already thought that. I only asked again here because I had read something to the contrary somewhere. I was once again looking for an alternative for Thonny in my workflow. I use PyCharm on MacOS for code development and Thonny for transfer and debugging on the uC. But while mpremote always works, Thonny is pretty bitchy. With esp controllers it still works, but with stm it's terrible. So once again I was hoping for an alternative. ;-) |
Beta Was this translation helpful? Give feedback.
-
Another approach is to use |
Beta Was this translation helpful? Give feedback.
-
I was about to suggest a similar idea when I encountered this discussion. My idea is to add an escape character within the repl session to run local mpremote commands. Here is what such a session would then look like:
My idea was that when encountering an exclamation mark, then the (local) repl session would terminate the remote connection, execute the command, and the reattach (resume). |
Beta Was this translation helpful? Give feedback.
-
Perhaps I didn't explain myself properly. The idea of the escape character is just to simplify the running of mpremote commands when already running a repl session. It is really just a shortcut for doing:
It should only be allowed when the user is already at the '>>>' prompt, so if there is an application on the MCU, you won't be able to run an escape command. Btw, the I have more or finished implementing this behavior under an emacs comint session, and it is behaving quite nicely, imho. See: https://gist.github.com/dov/9c97b8b9692fdeac7ce4e62400f8de8d |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I have established a repl connection to a microcontroller with mpremote in a terminal (macos), is there a way to transfer files without ending the repl session?
Apparently this is not possible. But IDE's like Thonny or VSCode do something like that.
Beta Was this translation helpful? Give feedback.
All reactions