Debug 2 devices on the same PC
You can configure each project to use a specific ST-Link by explicitly saying which ST-Link S/N to use.
To set specific ST-Link S/N you need to open Debug Configurations->Debugger and there in OpenOCD Options type “-c hla_serial xxxxxxxxxxxxxxxxxxxxxxxx”
To get your ST-Link’s serial you can use ST-Link Utility or STM CubeProgrammer
See screenshot attached