VS Code Issues
-
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? -
@gmedlicott We're looking into the
'pymakr.toggleConnect' failedissue, 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 inpymakr.conf? -
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.
-
@gmedlicott it's not True by default, because older firmware doesn't support it. We have documentation for pymakr settings here
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