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

    Best way to not block uploads from Atom

    Scheduled Pinned Locked Moved Discussion
    pycomupload failurepython
    6 Posts 4 Posters 1.2k Views 4 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.
    • B Offline
      blindman2k
      last edited by

      Hi world,

      I am using Atom/USB to upload code to my Wipy 3.0. Everything works fine except when my code is sleeping (which is pretty frequent), during which the upload attempt times out.

      I have tried with the following sleep function but the result is the same:

      def sleep(dur):
          timeRemaining = math.ceil(1000000.0 * dur)
          start = time.ticks_us()
          while time.ticks_diff(start, time.ticks_us()) < timeRemaining:
              machine.idle()
      

      Does anyone have any better ideas?

      sebS 1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb @blindman2k
        last edited by

        @blindman2k

        There is a new feature in pymakr to do a safeboot before each upload, this really helps reduce issues like this

        1 Reply Last reply Reply Quote 0
        • B Offline
          blindman2k
          last edited by

          I thought pymakr was obsolete and atom was the new editor of choice.

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

            @blindman2k I guess @seb is talking about the pymakr plug-in fo Atom and VSC. And also I guess the new "feature" is forcing a safe boot with Ctrl-F. Why the hell Ctrl-F? And why hardwired and not configurable?

            X 1 Reply Last reply Reply Quote 0
            • X Offline
              Xykon administrators @robert-hh
              last edited by

              @robert-hh said in Best way to not block uploads from Atom:

              And why hardwired and not configurable?

              I just talked to Daniel I'm merging your PR into our private repo now so hopefully we'll have this in the next release.

              Christian Ehlers

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

                @xykon Thanks. Even if I'm a little bit self-confident, please give it a second thought and a second test.

                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