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

    Connection issue to WiPy 3.0r

    Scheduled Pinned Locked Moved Issues & Bugs
    wipy 3.0pysenseatom
    6 Posts 4 Posters 649 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.
    • M Offline
      momentaj
      last edited by

      Hi,

      I was uploading many files to WiPy board using PySense board (more than 1000 files). During uploading, it suddenly prompted me the upload fails. Then, the COM3 connection was not responding.

      Then, I reset the board and after that I am not able to connect to the board using COM3 and also Wi-Fi. When I try to connect using Atom it just prompts the below message and nothing happens:

      Autoconnect: Found a PyCom board on USB
      Autoconnect: Connecting on COM3...

      I also tried to use PuTTY to connect to COM3 and the new terminal pops up, but it is not responding.

      How can I access to the board and delete all files or rest factory the board?

      Thanks

      1 Reply Last reply Reply Quote 0
      • P Offline
        Paul Thornton
        last edited by

        Hello.

        You can put the board into a "Safe Boot" mode by connection P12 to the 3.3v pin and reset the board. It will stop any code in main.py or boot.py from executing.

        Afterwhich you should be able to connect to the board and run

        import uos
        uos.mkfs("/flash") 
        

        To clear the flash filesystem back to empty.
        That said. 1k files sounds excessive. Are they all code?

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          momentaj @Paul Thornton
          last edited by

          @paul-thornton I have many libraries to use and all of the are Python files.

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            crumble @momentaj
            last edited by

            @momentaj said in Connection issue to WiPy 3.0r:

            @paul-thornton I have many libraries to use and all of the are Python files.

            Sounds much too huge for an esp32. I guess that you have to use every trick to run your stuff.

            • Switch off compression for USB transfer.

            • figured out unused files and don't copy them

            • precompile the libs and make the important ones frozen

            • use this string something feature, so you strings will be located in flash and used by reference

            • if they are too large for the internal flash, place some on an SD card

            • merge some files, so you don't waste that many blocks.

            • shorten all names (class, methods, properties and variables)

            • think small and redesign (do you really need all this stuff in this detail)

            • think big and redesing (add a unix machine with a few GByte as a coproc)

            1 Reply Last reply Reply Quote 1
            • M Offline
              momentaj
              last edited by

              I tried to do that but it there is no change. Here are the steps which I did:
              1- Connecting P12 to the 3.3v pin.
              2- Attaching USB cable to the PySense board while the pins are connected.
              3- Holding the pins connected for more than 3 seconds.

              Atom shows this message and I am not able to type in it:

              Autoconnect: Found a PyCom board on USB
              Autoconnect: Connecting on COM3...
              ets Jun  8 2016 00:22:57
              
              rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
              configsip: 0, SPIWP:0x00
              clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
              mode:QIO, clock div:1
              load:0x3fff0008,len:4
              load:0x3fff000c,len:148
              load:0x40078000,len:11876
              ho 0 tail 12 room 4
              load:0x40080000,len:268
              entry 0x40080034
              Autoconnect: Previous board is not available anymore
              

              Then, I disconnected the USB and connect it again and it prompts:

              Autoconnect: Found a PyCom board on USB
              Autoconnect: Connecting on COM3...
              

              Am I doing something wrong?

              Note: as it is shown in the pin layout here, I tried connecting 3rd and 8th top-right pins.

              Thanks

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

                @momentaj When using the pycom uploader 1.15.2, you have tghe option to erase the device on uploading a new firmware image.

                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