Sen descrición

F. St 3940116fca Comment out DOLPHIN_DEED line, because it was causing the build to fail %!s(int64=2) %!d(string=hai) anos
icons 540ec91b52 more code cleanups %!s(int64=3) %!d(string=hai) anos
model bb71d41672 add a rotating chip when scanning %!s(int64=3) %!d(string=hai) anos
swd_scripts 56e1a8ea19 rework code a bit for better debugging %!s(int64=2) %!d(string=hai) anos
.gitignore ac7d351bb7 initial checkin %!s(int64=3) %!d(string=hai) anos
LICENSE.txt ac7d351bb7 initial checkin %!s(int64=3) %!d(string=hai) anos
README.md 9aec1bb173 Update README.md %!s(int64=2) %!d(string=hai) anos
adi.c 18784804d7 added source link %!s(int64=2) %!d(string=hai) anos
adi.h df6dc6a634 added ADI CoreSight parsing %!s(int64=2) %!d(string=hai) anos
application.fam 56e1a8ea19 rework code a bit for better debugging %!s(int64=2) %!d(string=hai) anos
jep106.c ac7d351bb7 initial checkin %!s(int64=3) %!d(string=hai) anos
jep106.h ac7d351bb7 initial checkin %!s(int64=3) %!d(string=hai) anos
jep106.inc ac7d351bb7 initial checkin %!s(int64=3) %!d(string=hai) anos
swd_probe_app.c 3940116fca Comment out DOLPHIN_DEED line, because it was causing the build to fail %!s(int64=2) %!d(string=hai) anos
swd_probe_app.h bb4b204dee added single step commands %!s(int64=2) %!d(string=hai) anos
usb_uart.c 3a890e8d3a trying to debug USB hang issues when sending lot of data via second VCP %!s(int64=2) %!d(string=hai) anos
usb_uart.h 3a890e8d3a trying to debug USB hang issues when sending lot of data via second VCP %!s(int64=2) %!d(string=hai) anos

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