MicroPico: Could not run program by the error "Exception occured (maybe a connection loss)" on VS Code. (I need help)

Please provide a clear and concise description of the bug along with logs

What are the steps to reproduce this issue?

  1. Installed Micro-Pico extension to VS Code.
  2. Confirmed connection Raspberry Pi Pico and PC by USB (Com8 is not conflicted other ports.)
  3. Use flash LED program and Run current file on Pico.

What happens?

Could not run by the error “Exception occured (maybe a connection loss)”

What were you expecting to happen?

Any logs, error output, etc?

(To get extension logs see Terminal > Output > Extension Host and copy output concerning pico-w-go or micropico) (If it’s long, please paste to https://gist.github.com and insert the link here)

Any other comments?

Micro-Pico c Python 3.9.13 Raspberry Pi Pico WH MicroPython firmware RPI_PICO_W-20231005-v1.21.0.uf2 Visual Studio Code v

Which version of MicroPico are you using?

3.4.1

Support info

Copy this from the Help -> Info/About -> Copy (Code -> About Visual Studio Code -> Copy on macOS) option in Visual Studio Code:

Version: 1.83.1 (user setup)
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:48:05.904Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Comments: 46 (21 by maintainers)

Most upvoted comments

Great, here is a new build. You are on Windows x64, right?: https://1drv.ms/u/s!AvaW5dhFqJnIh_kOr1T24i4FSeiNPA?e=kKzMhf

Again uninstalling the old one and then vsix. The logs should now contain the reason why it fails.

Maybe trying a different USB port and/or cable if it’s some strange usb stuff that’s causing this connection issue… But if it’s working in a different program I guess that’s not the issue. And if you’re able to connect to the pico and run a command on it all requirements are met.

Strange, and what happens if you upload just a folder with one file in it with the upload project function?

@rodolfoBocanegra Sorry, you’re right that was the wrong link: https://1drv.ms/u/s!AvaW5dhFqJnIh_kOr1T24i4FSeiNPA?e=wpcMHd should be the correct one

@rodolfoBocanegra are you also on Windows x64?

@Actonmy I’ll make you both a debug version of the extension which should give us more feedback about what goes wrong there.