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

    Updating code is not working!!!

    Scheduled Pinned Locked Moved GPy
    gpyexpansion board
    5 Posts 3 Posters 929 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
      averri
      last edited by

      I'm trying to upload code to the board using the Pycharm with Micropython plugin. The Expansion does not respond.

      Connecting to COM7
      Uploading files: 0% (0/1)
      C:\dev\source\personal\embedded\pycom\blink\boot.py -> boot.py
      b'Traceback (most recent call last):\r\n  File "boot.py", line 12, in <module>\r\nKeyboardInterrupt: \r\nPybytes library: v0.9.0\r\nStarting UART...\r\n'
      Traceback (most recent call last):
        File "C:\Users\abc\.PyCharmCE2018.2\config\plugins\intellij-micropython/scripts/microupload.py", line 138, in <module>
          main(sys.argv[1:])
        File "C:\Users\abc\.PyCharmCE2018.2\config\plugins\intellij-micropython/scripts/microupload.py", line 79, in main
          files.put(remote_path, fd.read())
        File "C:\Users\abc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\ampy\files.py", line 157, in put
          self._pyboard.enter_raw_repl()
        File "C:\Users\abc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\ampy\pyboard.py", line 192, in enter_raw_repl
          raise PyboardError('could not enter raw repl')
      ampy.pyboard.PyboardError: could not enter raw repl
      

      I have a demo to do with this stuff, please help.

      danD robert-hhR 3 Replies Last reply Reply Quote 0
      • danD Offline
        dan @averri
        last edited by

        @averri Hi, any reason you're not using Pymakr with Atom or VSCode?

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          averri @dan
          last edited by

          @dan I have done a factory reset (connecting G28 pin to the +3.3v). After that, I was able to upload the code again.

          I had tried Pymakr with VisualStudio, it was not working fine. The Pymakr with Atom is working, but I prefer to use the Pycharm, the IDE is much better in many aspects.

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

            @averri Why don't you use ftp?

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

              @averri Besides that, I tried adafruit-ampy, which seems to be used by pycharm, and it works fine. Please be aware, that the files on the device mist be stored under /flash directory (or /sd, it mounted there). So a boot.py must have the target name /flash/boot.py

              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