WillyJL d7aa7ecb5f Merge swd_probe from https://github.com/xMasterX/all-the-plugins 8 bulan lalu
..
icons 5c56445a4e Merge swd_probe from https://github.com/xMasterX/all-the-plugins 1 tahun lalu
img 63f196c15f Add swd_probe from https://github.com/xMasterX/all-the-plugins 2 tahun lalu
model 04c3a60093 Format 2 tahun lalu
resources 27d4d8c1d8 Fix merge 2 tahun lalu
.gitignore 63f196c15f Add swd_probe from https://github.com/xMasterX/all-the-plugins 2 tahun lalu
.gitsubtree d7aa7ecb5f Merge swd_probe from https://github.com/xMasterX/all-the-plugins 8 bulan lalu
LICENSE.txt 63f196c15f Add swd_probe from https://github.com/xMasterX/all-the-plugins 2 tahun lalu
README.md 27d4d8c1d8 Fix merge 2 tahun lalu
adi.c 27d4d8c1d8 Fix merge 2 tahun lalu
adi.h fe2077c82e New formatting 1 tahun lalu
application.fam d7aa7ecb5f Merge swd_probe from https://github.com/xMasterX/all-the-plugins 8 bulan lalu
jep106.c 63f196c15f Add swd_probe from https://github.com/xMasterX/all-the-plugins 2 tahun lalu
jep106.h 63f196c15f Add swd_probe from https://github.com/xMasterX/all-the-plugins 2 tahun lalu
jep106.inc 63f196c15f Add swd_probe from https://github.com/xMasterX/all-the-plugins 2 tahun lalu
swd_probe_app.c fe2077c82e New formatting 1 tahun lalu
swd_probe_app.h fe2077c82e New formatting 1 tahun lalu
usb_uart.c d7aa7ecb5f Merge swd_probe from https://github.com/xMasterX/all-the-plugins 8 bulan lalu
usb_uart.h 63f196c15f Add swd_probe from https://github.com/xMasterX/all-the-plugins 2 tahun lalu

README.md

ARM SWD (Single Wire Debug) Probe

Modern microcontrollers have support for the two wire debug interface SWD, which makes wiring a lot simpler. When reverse engineering, finding these two pins is a los easier than with JTAG, where you had to wire up twice or more pins. However, finding the two pins is still a bit of work, which gets simplified even more with this application.

This application tries to detect a valid SWD response on the wires you have picked and beeps when you have found the correct pins, showing the detected ID register and, more important, the SWD pinout. It doesn't matter which two pins you choose, just pick any two from the GPIOs on the breakout header.

To achieve this, the application sends packets and scans the response on all pins and elaborates the pins within a few retries. Using some kind of bisect pattern reduces this number to a hand full of tries, yielding in a seemingly instant detection.

For the user it is as simple as a continuity tester - wire up your two test needles (or accupuncture needles), connect the obvious GND pin and probe all test pads. Now it depends on your bisect capabilities finding all pad combinations, how long it will take this time.

https://cdn.discordapp.com/attachments/954430078882816021/1071603366741938176/20230205_022641.mp4

https://cdn.discordapp.com/attachments/1071712925171056690/1072306469057347594/qFlipper_2023-02-07_01-01-24.mp4

Discussion thread: https://discord.com/channels/740930220399525928/1071712925171056690