Created
November 4, 2021 01:43
-
-
Save urish/4d002caa3311986552b11a363a2ddd61 to your computer and use it in GitHub Desktop.
OpenOCD Configuration for Raspberry Pi 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface bcm2835gpio | |
bcm2835gpio_peripheral_base 0xFE000000 | |
# Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET | |
# These depend on system clock, calibrated for stock 700MHz | |
# bcm2835gpio_speed SPEED_COEFF SPEED_OFFSET | |
bcm2835gpio_speed_coeffs 236181 60 | |
# Each of the JTAG lines need a gpio number set: tck tms tdi tdo | |
# Header pin numbers: 23 22 19 21 | |
bcm2835gpio_jtag_nums 11 25 10 9 | |
# Each of the SWD lines need a gpio number set: swclk swdio | |
# Header pin numbers: 23 22 | |
bcm2835gpio_swd_nums 11 25 | |
# If you define trst or srst, use appropriate reset_config | |
# Original header pin numbers: TRST - 26, SRST - 18 | |
# bcm2835gpio_trst_num 7 | |
# reset_config trst_only | |
# bcm2835gpio_srst_num 18 | |
# reset_config srst_only srst_push_pull | |
# or if you have both connected, | |
# reset_config trst_and_srst srst_push_pull | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment