You need to connect to the “J18” connector on your board:
The wiring I use for my ST-Link 2 looks like:
The white painted pin is Pin1.
As for the ST-Link 2 connector:
Pin connections are:
Function ST-Link 2 Pin J18 Pin
+3V3 1 1
SWDIO 7 2
GND 8 3
SWCLK 9 4
RESET 15 5
Then you can use STMCubeIDE or STMCubeProgrammer as required.


