That Thonny does a lot better suggests to me that it's more an issue with whatever you are using within VS Code to do your MicroPython development.So is this a Pi Pico thing, a VSCode thing, a hardware issue, or PEBKAC?
Thonny appears to manage the connection with the hardware a lot better
So what are you using within VS Code for MicroPython development, how does this 'bricking' manifest itself, and what error messages do you get when it appears to be 'bricked' ?
Are you using a Pi and Raspberry Pi OS, Linux, Windows, Mac or something else ?
That is the other likely possibility. If you or the VS Code extension is saving your MicroPython code as 'main.py' and running that, or it is run from 'main.py', it can require nuking the Flash and re-uploading MicroPython to 'unbrick' it.Sometimes a micropython application, started by main.py, runs into a state again which does not respond to external stimulus from thonny.
Statistics: Posted by hippy — Sat Jan 11, 2025 8:03 pm