Electrical – STLink cannot connect, unless VDD is connected

power supplyst-linkstm32

I have made my own board with an stm32g474 on it. Unfortunately I have some problem with connecting to it with ST-link. The board has it's own power supply.
If I connect the SWDIO, SWCLK, NRST and GND pins , then the ST-link cannot connect to it.
However it works, if I disconnect the board's power supply and connect the ST-link's 3,3V.

Do you have any idea, why is that?

Best Answer

That is because the ST-Link can work with a range of different voltages, it needs the voltage reference what to use from the target. If it for example always used 3.3V, it would damage something if connected to a 2.7V target.