Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pico keeps disconnecting and reconnecting when i try to run a script on it #212

Open
Emanuel-Tarcisiu opened this issue Mar 18, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Emanuel-Tarcisiu
Copy link

hi everyone i have just bought my raspberry pico and i wanted to try and learn how to program a microcontroler and i didnt like the thonny ide(and couldnt get it to install micropython on my board) and i have found this vscode extension
(i have uploaded the uf2 file from the official website for micropython)
once the pico connects i can run simple commands via the terminal like print() but once i try and use the run current file on pico command the board just disconnects and then reconnects almost instantly but my script isnt running

i only got his error message in the console: Exception occured (maybe a connection loss)

i dont know what am i doing wrong, i have also tried to connect my pico to my pc using a different usb cable but that one seems to do worse because it just kept connecting and disconnecting without running any commands(i am using a brand new micro-usb cable)

i also want to mention that i have run some simple c programs on my pico and they worked flawlessly
does anyone have a solution for this problem? thanks!
Screenshot 2024-03-18 190814
in this screen shot i ran a simple command and then tried to run a blink.py script on my pico but got that message

@Emanuel-Tarcisiu Emanuel-Tarcisiu added the bug Something isn't working label Mar 18, 2024
@paulober
Copy link
Owner

paulober commented Mar 19, 2024

Maybe that's related to issues some other also have. I'm still searching for a possible cause to this kind of issues.
Is It possible for you to upload a file via the virtual workspace function?

@Emanuel-Tarcisiu
Copy link
Author

i dont know how to do that where can i find this option? i used the options menu from when you right click the script to upload it.
Screenshot 2024-03-19 192717

i found a button that adds this remote workspace to my directory but i dont know how to use it
Screenshot 2024-03-19 192539

@paulober
Copy link
Owner

Could can use It like a file system (it's on the pico). You can drag the python script in there and then right click the script and select run.

@g0g2
Copy link

g0g2 commented Mar 22, 2024

image

Hello, I am also experiencing the same issue.
As instructed, I dragged the Python script and right-clicked on the script and select run, and the code worked as expected.

@elf55
Copy link

elf55 commented Apr 6, 2024

I have the same problem. Running MacOS 14.4. Terminal cyclically connects and disconnects every 5 seconds.

@Emanuel-Tarcisiu
Copy link
Author

It worked! Dragging and dropping the file in the virtual workspace allowed me to run the script! Thank you very much!
Screenshot 2024-04-06 095356

@BojanKogoj
Copy link

This happens to me whenever it gets "stuck". Only I could fix it is by flashing it again.

@poole-party
Copy link

I just ran into this as well on Ubuntu 22.04.4 LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants