The problem is simple. I uploaded a buggy program using ST-Link to a stm32f303 prototype board. The bug was that the routine that kicks the watchdog in the power supervisor does not work. Therefore it keeps resetting the MCU. While this is happening I cannot connect using ST-Link in any mode. Anything I'm missing or is it soldering time?