You can read more about how it works here: https://polyfractal.com/post/rustl8710/
Fair disclaimer: I know very little about embedded hardware, so a good chunk of the article is also about how to physically setup the PADI for SWD, UART, etc.
Hope this is helpful/interesting to someone!
