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

MicroPico disconnect won't free serial port #207

Open
Prototype-Laboratory opened this issue Mar 6, 2024 · 3 comments
Open

MicroPico disconnect won't free serial port #207

Prototype-Laboratory opened this issue Mar 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Prototype-Laboratory
Copy link

What are the steps to reproduce this issue?

  1. open VSCode and connect with the MicroPico extension to the Raspberry Pi Pico
  2. disconnect by pressing the "toggle board connection" button or by using the MicroPico Command "Disconnect"
  3. open another serial monitor and try to connect to the Raspberry Pi Pico (won't work)

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?

  • I am using Micro Python firmware v1.22.1
  • Even if I close VSCode, I am not able to connect to the Pico with another serial Monitor. I have to reconnect the USB-Connection.
  • Basically I want to write a python program, which is connecting via pyserial to the Raspberry Pi Pico, which won't work, because the Port is still opened.

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:

Version: 1.87.0
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Datum: 2024-02-27T23:42:16.599Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
Betriebssystem: Linux x64 6.6.16-2-MANJARO
@Prototype-Laboratory Prototype-Laboratory added the bug Something isn't working label Mar 6, 2024
@jkozniewski
Copy link

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

@Prototype-Laboratory
Copy link
Author

No, it's an ordinary PC with Linux

Operating System: Manjaro Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.6.19-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Memory: 27.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 21K4S02000
System Version: ThinkPad T14 Gen 4

@chrfwow
Copy link

chrfwow commented Jul 7, 2024

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.
When trying to connect to the COM Port from a Java application using jSSC, I get a Port Busy exception when VSCode is opened (as expected), but when VSCode is closed, I get the following error message:

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007110b5db, pid=21592, tid=22632
#
# JRE version: OpenJDK Runtime Environment (17.0+35) (build 17+35-2724)
# Java VM: OpenJDK 64-Bit Server VM (17+35-2724, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C  [jSSC-2.8_x86_64.dll+0xb5db]

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

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

3 participants