Programming board from terminal
-
Hello,
Is there a simple way to load a new program on the board from the command line, over USB? I do not want to use atom or vs code. I'd like to be able to use Makefiles and Make compatible build systems.
I have tried using FTP. It almost kind of worked the first time I tried it, but timed out pretty routinely. Now it just doesn't connect (I have verified the IP configuration through the serial repl, made sure the device is connected to the network, and made sure the configuration of the FTP tool is correct)
-
@andyh13 You can use:
pyboard.py: https://github.com/micropython/micropython/blob/master/tools/pyboard.py
rshell.py: by dave Hylands. Install it e.g. withpip install rshell, or here: https://github.com/dhylands/rshell.git
ampy: by adafruit.. Install e.h withpip3 install adafruit-ampyEdit: They all depend on the board to soft-boot with Ctrl-D. The newest PyCom firmware disabled that, for whatever reason, which is a pain.
-
@andyh13 note that the built-in FTP server only supports one connection at a time, when many clients try to open several at once. Check the docs for settings for clients due as FileZilla.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login