While [Dima]’s MCU of choice is the STM32, but this design should be applicable ... Having trouble finding the SWD points on an existing device? Try this method.
Versaloon is an open source, USB connected project, that centers around an STM32 processor and provides a standard JTAG pinout. Above you see the Nano version which has a 10-pin JTAG connector ...