Detecting ST-Link V2-1 virtual COM port with C#?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-03 12:40 AM
Hello,
I want to connect to the VCP of a Nucleoboard by a C# application. I don't want to iterate through all available COM ports on the system, so I'm searching a way to detect if one or more Nucleoboards are connected and connect to the corresponding VCPs. Has anyone already tried that and can give me some hints?
Regards
- Labels:
-
ST-Link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-03 4:07 AM
Well, you have to iterate through the registry. In bl*ckm*g*c does that to find the gdb port. BMP is on github https://github.com/blacksphere/ The iteration is in src/platforms/pc/serial_win.c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-03 4:16 AM
+1
Both COM port and USB assocativity can be fished out of the registry​ trees/nodes
Up vote any posts that you find helpful, it shows what's working..
