Sapog flahing using Black Magic Probe

I use black magic probe v2.1 and don’t have drone code debug adapter. I want to connect J-tag pin on black magic probe and debug port on Orel 20 to flash the Sapog firmware.

Can I pair like below?

Orel 20 --------------------------- J-tag on black magic probe
TPWR ---------------------------- VCC
SWDIO -------------------------- SWDIO
SWDCLK ----------------------- SWDCLK
GND ------------------------------ GND

And do I need to connect uart port to flash the firmware?

Yes, this will work. UART is not need for flashing.

Can I flash io.px4.sapog-1-2.3.fa0ff46.compound.bin file using ST Link v2 on my Orel 20 ?

Yes.