-
Notifications
You must be signed in to change notification settings - Fork 27
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
MicroPico disconnect won't free serial port #207
Comments
hi - I guess it's related to #197 @Prototype-Laboratory are you on Mac platform (intel / silicon) ? @paulober - any chance to look into this ? seems it's pretty common issue already raised in three related issues and it makes working with pico almost impossible, let me know is you need any additional debug data apart from what I've provided in #197 |
No, it's an ordinary PC with Linux Operating System: Manjaro Linux |
I am having a similar issue. Connecting to my Raspberry Pi Pico does not work. However, the port does not seem to remain occupied after I close VSCode, but I still cannot connect to its COM Port.
I also cannot connect the Serial Monitor inside VSCode, or using rshell via WSL. The errors occur both on my desktop pc and my laptop, with both running Windows 10 |
@jkozniewski Sorry for the delay. I'll try finding some time to look into this. Lots of the serial port handling changed after switching to a new backend with v4. So I first want to check if this is still and issue with the latest version? |
Ok after testing, the problem is still present. If I try to open the serial port with Serial.open() in python, a SerialException error is raised with "Port is already open.", even if the connection to the Pico by MicroPico is disabled. So something is still occupying the port. It seems that this is a MicroPython related issue, as the problem exists after closing VSC and reconnect the Pico to the computer. So I have to use my workaround mentioned before. |
What are the steps to reproduce this issue?
What happens?
Even if I disconnect the Raspberry Pi Pico, the tty port is still occupied by the extension, so using another serial monitor to connect to the Pico won't work
What were you expecting to happen?
Release the serial port after pressing the "toggle board connection" button to disconnect the Pico.
Any other comments?
Which version of MicroPico are you using?
3.7.5
Support info
Copy this from the
Help -> Info/About -> Copy
(Code -> About Visual Studio Code -> Copy
on macOS) option in Visual Studio Code:The text was updated successfully, but these errors were encountered: