Two st-link on a single remote device

Hi Everyone,

I am new to programming stm32 and using platformio IDE. I wanted to use a remote device with two stm boards connected to it. As I program one the boards remotely, i dont seem to encounter any problem but when I connect two st-link at the same time I encounter error below.
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Warn : UNEXPECTED idcode: 0x1ba01477
Error: expected 1 of 1: 0x2ba01477
in procedure ‘program’
** OpenOCD init failed **
shutdown command invoked **

This doesn’t really make sense (without modifications) because PlatformIO doesn’t support it out of the box because OpenOCD doesn’t support it out of the box, as discussed in Choosing STLink V2 programmer.

This error is known to appear when attempting to program a fake Bluepill board with a CS32 chip instead of an STM32 chip, as discussed in Debugging of STM32F103 clone "BluePill" board, wrong idcode.

Hi Max,

Thanks for your response. I will try the steps as suggested and hopefully will work. I dont know if I have a clone at hand because I have no issue on uploading if I am only using one st-link. I am using a nucleo-64 development board with STM32F303RE chip on it.

BR,

Jude