Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PicoW SWD pins swapped #3888

Closed
ENAC-Robotique opened this issue Oct 17, 2024 · 6 comments
Closed

PicoW SWD pins swapped #3888

ENAC-Robotique opened this issue Oct 17, 2024 · 6 comments
Labels
rp2040 Something to do with Pico or RP2040 stale issue

Comments

@ENAC-Robotique
Copy link

Hello,
I don't know if this is the right place to report this, but the SWDCLK and SWDIO pins are swapped in the documentation.
I had trouble debugging the PicoW(H), and it worked after swapping SWDCLK and SWDIO.
I have a "Raspberry Pi Pico WH 2022".
https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html#raspberry-pi-pico-w-and-pico-wh

@nathan-contino
Copy link
Collaborator

Hmmm. I just looked at my Pico 2 and my Pico, and SWCLK is on the left side of the board, looking at the front, just like the documentation says.

Whenever we put a bunch of letters on a silkscreen and make a bunch of docs, it's possible that we mess something up. But I think the diagram on the linked page (and the linked PDF diagram on that page, and the diagrams in Getting Started with Pico and the Pico Datasheet) is correct. Is it possible that your board is just upside-down?

A picture of your setup could be helpful here. Any chance you can include one?

@nathan-contino
Copy link
Collaborator

And I just checked the Pico W datasheet, and SWCLK appears to be in the correct place, on the left, especially notable because it's square instead of a circle. I don't think there's a hardware difference between the Pico W board and the Pico WH board aside from the soldered-on bits, so I'd like some evidence from your side before I make any changes.

Thanks for bringing this up, though. The documentation doesn't get any better unless we get feedback from people like you.

@ENAC-Robotique
Copy link
Author

This is working just fine:
The yellow wire is SWDCLK and the blue one is SWDIO.
So from the left to the right I have SWDIO, GND, SWDCLK.
I am absolutely certain of the labels on my debug probe because I used it with other microcontrollers.
image
image

In the doc, this is the opposite.
image

@lurch
Copy link
Contributor

lurch commented Oct 22, 2024

@ENAC-Robotique I think you're mixing up Pico W and Pico WH 🙂 The diagram you've posted above is correct for the Pico W, but the Pico WH (and also the Pico H) use the smaller 3-pin debug connector, which is documented in https://datasheets.raspberrypi.com/debug/debug-connector-specification.pdf

@nathan-contino I guess a variation of this NOTE from the Pico / Pico H section probably also needs adding to the Pico W / Pico WH section?
Screenshot from 2024-10-22 13-20-27

@lurch lurch added the rp2040 Something to do with Pico or RP2040 label Oct 22, 2024
@nathan-contino
Copy link
Collaborator

Aha, thank you @lurch . That explains everything. Thanks for the suggestion, @ENAC-Robotique !

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rp2040 Something to do with Pico or RP2040 stale issue
Projects
None yet
Development

No branches or pull requests

3 participants