Re: [blackmagic] Black Magic Probe for new microcontroller IDE
An in-application debug probe for ARM Cortex-M microcontrollers.
Status: Beta
Brought to you by:
gsmcmullin
|
From: <kri...@te...> - 2019-09-08 14:08:08
|
Dear Black Magic Developers, I found a way to show the "FriendlyName" of each virtual COM-port on Windows. First I issue the following console command to see all COM-ports that are currently connected: > REG QUERY HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM I get the output: \Device\ssudmdm0000 REG_SZ COM7 \Device\USBSER000 REG_SZ COM31 \Device\USBSER001 REG_SZ COM32 Next I issue a console command to ask all installed USB devices with their "FriendlyName": > REG QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\ /s /f "FriendlyName" /t "REG_SZ" I get the output: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0403&PID_EEEE\FTVX4O6F FriendlyName REG_SZ USB Serial Port (COM21) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0483&PID_3748\066EFF524853837267105137 FriendlyName REG_SZ STM32 STLink HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0483&PID_374B&MI_00\6&4130aa4&0&0000 FriendlyName REG_SZ ST-Link Debug HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0483&PID_374B&MI_02\6&4130aa4&0&0002 FriendlyName REG_SZ STMicroelectronics STLink Virtual COM Port (COM3) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1D50&PID_6018&MI_00\7&4bc2d51&0&0000 FriendlyName REG_SZ USB Serial Device (COM31) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1D50&PID_6018&MI_02\7&4bc2d51&0&0002 FriendlyName REG_SZ USB Serial Device (COM32) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0042\956353334313517052F1 FriendlyName REG_SZ Arduino Mega 2560 (COM12) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0043\55736303731351816081 FriendlyName REG_SZ Arduino Uno (COM11) Next I can combine the output from the first and second command, to know the friendly names of COM7 , COM31 and COM32 : COM7 -> None COM31 -> USB Serial Device COM32 -> USB Serial Device Unfortunately, this doesn't help me much. I know from trial and error that COM31 is the Black Magic Probe's GDB server and COM32 its serial port. But I wouldn't be able to determine that purely from the "friendly names" stored in the Windows registry. Do you know another way to determine the correct COM-port? Van: "kristof mulier" <kri...@te...> Aan: "blackmagicdebug-devel" <bla...@li...> Cc: "johan cockx" <joh...@si...>, "kukovecmatic" <kuk...@ho...>, "Johan Cockx" <jc...@gm...> Verzonden: Zondag 8 september 2019 15:17:13 Onderwerp: [blackmagic] Black Magic Probe for new microcontroller IDE Dear Black Magic developers, We are working on a new C/C++ IDE for programming microcontrollers. We've not yet launched the software, but you can have a sneak peak on our test website: https://test.embeetle.com We would like to support your open-source Black Magic probe in the IDE. Everything is well explained on your github page (https://github.com/blacksphere/blackmagic/wiki/Getting-Started) so we got the probe almost working in the IDE. There is just one more hurdle to take, for which we'd need your help. Connection on Linux To connect to the probe's virtual COM-port on Linux, one needs to issue the gdb command: (gdb) target extended-remote /dev/ttyACM0 In your FAQ, you give a solution to provide a stable name to this virtual COM-port, like /dev/ttyBmpGdb . However, it's more problematic on Windows... Connection on Windows To connect to the probe's virtual COM-port on Windows, the command would look like: (gdb) target extended-remote \\.\COM10 However, the name of the COM-port is uknown beforehand. We cannot ask our users to look up the COM-port in the device manager and fill it in somewhere. We want it to work "out of the box". Is it possible to detect the virtual COM-port's name automatically through some Windows console command? Or perhaps a python command? Thank you very much for your help. Kind greetings, Kristof Mulier _______________________________________________ Blackmagicdebug-devel mailing list Bla...@li... https://lists.sourceforge.net/lists/listinfo/blackmagicdebug-devel |