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

    VS Code Issues

    Scheduled Pinned Locked Moved Software Tools
    pymakrbug
    4 Posts 2 Posters 947 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.
    • G Offline
      gmedlicott
      last edited by

      Worked yesterday, but today I can't connect to Wipi via the Expansion Board 3.0. Clicking 'Pycom Console' in VS Code (v1.27.1, then 1.27.2) gives:

      Running the contributed command:'pymakr.toggleConnect' failed.

      Terminal reads 'Connection attempt canceled'.

      On the connect topic, the only way I could previously get a REPL prompt to perform an Upload while the program was in a while(1) loop was to:
      -Click 'Pycom Console' to disconnect
      -Power off chip
      -Connect P12 to 3.3V rail
      -Power on, pull P12 connection before 3s
      -Click 'Pycom Console' to connect.
      Is there a better way? Code a pin to exit the while loop? Am I missing something?

      danD 1 Reply Last reply Reply Quote 0
      • danD Offline
        dan @gmedlicott
        last edited by

        @gmedlicott We're looking into the 'pymakr.toggleConnect' failed issue, thanks for reporting.

        I tried your second question, I'm able to upload even if it's in a while loop. (while(1) with a print statement) What are you doing in your loop? Have you tried enabling safe boot in pymakr.conf?

        1 Reply Last reply Reply Quote 0
        • G Offline
          gmedlicott
          last edited by

          Making "safe_boot_on_upload": true in pymakr.conf worked for while(1) loop uploads, thanks! I feel like this should be 'true' by default (isn't 99++ percent of all embedded code in a main while(1) loop?). Or some documentation to that effect that would help future users.

          danD 1 Reply Last reply Reply Quote 0
          • danD Offline
            dan @gmedlicott
            last edited by

            @gmedlicott it's not True by default, because older firmware doesn't support it. We have documentation for pymakr settings here

            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