STLink upload_port

Am I reading this correctly, lots of different posts on the topic, with the STLink upload protocol I can specify an upload_port?

None. You just use upload_protocol = stlink without specifying an upload port – OpenOCD will automatically pick the first STLink USB device for uploading.

A typo, I meant I can’t specify an upload port. I have two boards connected and want to have two VS Code sessions open for debugging.

Not possible in standard configurations. Needs OpenOCD configuration modifications, see More than one ST-Link for upload (several devices are connected to PC_.

Thanks, that looks like it may work. I will have to plan some focused time to work through the details. I am thinking the combination of the custom upload and the OpenOCD configuration file.