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

Update swd-pi.cmd to support Pi 1 with 26 pin GPIO header #4

Open
wants to merge 1 commit into
base: nrf52
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/nrf52/swd-pi.ocd
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ bcm2835gpio_speed_coeffs 236181 60
# SWD Configuration

# Assign each SWD line (SWCLK, SWDIO) to a Pi GPIO: (See https://pinout.xyz/ for Pi Header Pin Number to GPIO mapping)
# For Pi 1 a/b with 26 pin GPIO header
# Connect Pi Header Pin Number 23 (GPIO 11) to nRF52 SWCLK (Yellow wire)
# Connect Pi Header Pin Number 19 (GPIO 10) to nRF52 SWDIO (Green wire)
# bcm2835gpio_swd_nums 11 10
# For all other Pi with 40pin GPIO header
# Connect Pi Header Pin Number 38 (GPIO 20) to nRF52 SWCLK (Yellow wire)
# Connect Pi Header Pin Number 40 (GPIO 21) to nRF52 SWDIO (Green wire)
bcm2835gpio_swd_nums 20 21
Expand Down