Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Programming board from terminal

    Scheduled Pinned Locked Moved Software Tools
    3 Posts 3 Posters 225 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      andyh13
      last edited by

      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)

      robert-hhR J 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @andyh13
        last edited by robert-hh

        @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. with pip install rshell, or here: https://github.com/dhylands/rshell.git
        ampy: by adafruit.. Install e.h with pip3 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.

        1 Reply Last reply Reply Quote 1
        • J Offline
          jcaron @andyh13
          last edited by

          @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.

          1 Reply Last reply Reply Quote 1

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom