2023-09-20 05:30 AM - edited 2023-09-20 05:31 AM
I am struggling to find a good way to identify the two COM ports the STLink-V3PWR provides. One is for direct communication with the power measurement unit and the other is connected to DEBUG for the target device(VCP).
We need a easy way to identify the DEBUG UART port of the STLink-V3PWR. When performing the "-l uart" command with the STM32_Programmer_CLI.exe we receive two identical outputs for both ports. This is not the case with the STLINK-V3SET, because we get an easy identifyable description "STMicroelectronics STLink Virtual COM Port".
In the example below, how do I distinguish between COM20 and COM21? There must be a better way than opening both ports and checking which one responds to the "version" command.
Example Outputs:
STLINK-V3SET
"C:\\Program Files\\STMicroelectronics\\STM32Cube\\STM32CubeProgrammer\\bin\\STM32_Programmer_CLI.exe" -l uart
-------------------------------------------------------------------
STM32CubeProgrammer v2.14.0
-------------------------------------------------------------------
===== UART Interface =====
Total number of serial ports available: 1
Board Name : STLINK-V3SET
ST-LINK SN: 0047001D3037510339373532
Port: COM4
Location: \\.\COM4
Description: STMicroelectronics STLink Virtual COM Port
Manufacturer: STMicroelectronics
STLINK-V3PWR
"C:\\Program Files\\STMicroelectronics\\STM32Cube\\STM32CubeProgrammer\\bin\\STM32_Programmer_CLI.exe" -l uart
-------------------------------------------------------------------
STM32CubeProgrammer v2.14.0
-------------------------------------------------------------------
===== UART Interface =====
Total number of serial ports available: 2
Board Name : STLINK-V3PWR
ST-LINK SN: 002300433432511839383236
Port: COM20
Location: \\.\COM20
Description: Serielles USB-Gerõt
Manufacturer: Microsoft
Board Name : STLINK-V3PWR
ST-LINK SN: 002300433432511839383236
Port: COM21
Location: \\.\COM21
Description: Serielles USB-Gerõt
Manufacturer: Microsoft
Solved! Go to Solution.
2023-09-26 12:25 AM - edited 2023-09-26 12:47 AM
Installing the driver fixes this issue, thank you!
-l uart shows now a good description as well:
Board Name : STLINK-V3PWR
ST-LINK SN: 002300433432511839383236
Port: COM20
Location: \\.\COM20
Description: STMicroelectronics STLink Virtual COM Port PWR
Manufacturer: STMicroelectronics
Board Name : STLINK-V3PWR
ST-LINK SN: 002300433432511839383236
Port: COM21
Location: \\.\COM21
Description: STMicroelectronics STLink Virtual COM Port
Manufacturer: STMicroelectronics
Would be great if this driver was installed automatically when installing STM32CubeMonitor-Power or STM32CubeProgrammer.