Skip to content

Commit

Permalink
add jtag debug configs for openocd
Browse files Browse the repository at this point in the history
  • Loading branch information
miikaoskari committed Nov 16, 2024
1 parent 599a809 commit 021f0ad
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions dbg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openocd -f interface/jlink.cfg -f board/rpi4b.cfg
16 changes: 16 additions & 0 deletions jlink.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-License-Identifier: GPL-2.0-or-later

#
# SEGGER J-Link
#
# http://www.segger.com/jlink.html
#

adapter driver jlink

# The serial number can be used to select a specific device in case more than
# one is connected to the host.
#
# Example: Select J-Link with serial number 123456789
#
# adapter serial 123456789
13 changes: 13 additions & 0 deletions rpi4b.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: GPL-2.0-or-later

# This is the Raspberry Pi 4 model B board with BCM2711 chip
# https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711/README.md
#
# Enable JTAG GPIO on Raspberry Pi boards
# https://www.raspberrypi.org/documentation/configuration/config-txt/gpio.md

source [find target/bcm2711.cfg]
transport select jtag

# Raspberry Pi boards only expose Test Reset (TRST) pin, no System Reset (SRST)
reset_config trst_only

0 comments on commit 021f0ad

Please sign in to comment.