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

    W01 OEM + L01 reference board + Expansion board 2.0: ampy is possible?

    Scheduled Pinned Locked Moved Discussion
    w01ampyusbexpansion boardmicropython
    13 Posts 2 Posters 2.2k Views 2 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.
    • F Offline
      formica
      last edited by formica

      Dear all, I'm new with pycom but I'm not new with micropython.
      So, I would like to upload code through usb using ampy or rshell... but I can't. Is it possible?
      I have a pycom W01 oem module soldered on an L01 reference board and mounted on an Expansion board 2.0.
      I'm able to use REPL with 'screen' on /dev/ttyUSB0 but when I try to upload with 'ampy' (from Linux) everything hangs up.

      Any idea?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @formica
        last edited by

        @formica Which version of the firmware do you use? And is theer a difference to version 1.15.0.b1 and earlier?

        1 Reply Last reply Reply Quote 0
        • F Offline
          formica
          last edited by

          MicroPython v1.8.6-621-g17ee404e on 2017-05-25; WiPy with ESP32

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @formica
            last edited by

            @formica You shoud also tell the result of uos.uname()

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              formica @robert-hh
              last edited by

              @robert-hh
              (sysname='WiPy', nodename='WiPy', release='1.7.0.b1', version='v1.8.6-621-g17ee404e on 2017-05-25', machine='WiPy with ESP32')

              robert-hhR 1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @formica
                last edited by

                @formica The release level is quite old, so you might consider updating. I tried ampy yesterday with a board running release 1.17.3.b1, and it worked.
                You can still upload code through ftp/WiFi, as you surely know. And, since you have an expansion board, you can also use an Micro-SD card, at least for initial transfer.

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  formica @robert-hh
                  last edited by

                  @robert-hh
                  No way robert.
                  Now my uname gives (sysname='WiPy', nodename='WiPy', release='1.17.3.b1', version='v1.8.6-849-83e2f7f on 2018-03-19', machine='WiPy with ESP32') but 'ampy' is still unusable...

                  Maybe I have to modify something in the boot.py?

                  Regards

                  robert-hhR 1 Reply Last reply Reply Quote 0
                  • robert-hhR Offline
                    robert-hh @formica
                    last edited by

                    @formica I just retested it with the standard build - no problem. My boot.py is empty.
                    Do you close the Atom window or other REPL windows during upload? You have to.

                    F 1 Reply Last reply Reply Quote 0
                    • F Offline
                      formica @robert-hh
                      last edited by

                      @robert-hh
                      Yes, nothing in the background.
                      Tried with 'ampy -p /dev/ttyUSB0 -b 115200 put myfile.py' without any result.

                      :(

                      robert-hhR 1 Reply Last reply Reply Quote 0
                      • robert-hhR Offline
                        robert-hh @formica
                        last edited by

                        @formica What is the error message?

                        F 1 Reply Last reply Reply Quote 0
                        • F Offline
                          formica @robert-hh
                          last edited by

                          @robert-hh
                          No error.
                          Just hangs up the terminal and I have to type CTRL-C.

                          :(

                          robert-hhR 1 Reply Last reply Reply Quote 0
                          • robert-hhR Offline
                            robert-hh @formica
                            last edited by

                            @formica does any other ampy action work, like 'ls' or 'ls /flash'?
                            and the usual brute force hammer on linux, running it with sudo?

                            F 1 Reply Last reply Reply Quote 0
                            • F Offline
                              formica @robert-hh
                              last edited by formica

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0

                              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