STLink cannot connect, unless VDD is connected
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.