[Help] STlinkv2 to Maytech VESC7.12

Hello,

How to connect the st link v2 on the maytech ESC VESC7.12 200A to program new STM32
or is there another way ?

pinout :

5v
3v3
gnd
ad1
rx
tx
ad2
ad3

Thanks