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 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.
-
@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-ampy
Edit: 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.