ST-Link Error on a custom hardware board
Hello,
recently I made a board for a project and was planning to flash firmware with ST-LINK/V2. However, when I wanted to flash a test program I got a message from Console:
Target no device found
Error in initializing ST-LINK device.
Reason: No device found on target.
I checked all the connections and VDD pins with decoupling caps and looks like everything is properly connected. Yet still I don't understand what is the reason of not connecting. Schematic of the project:

Physical connections:
Attached as connections.jpeg
I upgraded ST-LINK tool to the latest version and the MCU I am using is STM32G474CET3
ST-LINK/V2 model: B202533
Most of the design is just copied from the Reference design STM32G4 Series document.
Any help is highly appreciated.


