szymonh / SWDscan

Identify Serial Wire Debug (SWD) clock and io lines using your favorite Arduino.
GNU General Public License v3.0
47 stars 6 forks source link

nRF51 SWD no response #1

Closed mobier closed 4 years ago

mobier commented 4 years ago

Normal recognizable device (nrf51822)

Use logic analyzer to resolve to device ID (0xbb11477)

Using Arduino uno / micro (16mhz) does not show back

Device reply noreply

Waveform when disconnecting from nrf51 cable

szymonh commented 4 years ago

Hi @mobier, thanks for trying out the app, hopefully I'll be able to resolve the issue.

Could you please let me understand the situation a bit better by answering the below questions?

  1. Looking at the issue report you mentioned use of Arduino Uno and Micro 16Mhz which both use 5V level logic, while the nRF51 uses 3.3V logic. Have you included a level shifter between your 5V Arduino and the 3.3V nRF51?

  2. I understand that the nRF SWDCLK is connected to GPIO PIN 2, SWDIO to GPIO PIN 3 (both through a logic level shifter if using a 5V Arduino) and GND is connected between Arduino and the target. Is this correct?

  3. Are the screenshots from logic analyzer complete? Looking at the image the switch from jtag to swd is missing. Perhaps you could export and attach the logic analyzer capture to this issue if it's not very large?

Thanks for your input.

Best regards, Szymon

szymonh commented 4 years ago

@mobier Could you please provide some more information by answering earlier questions?