Add revision 1 of openocd configs - not working
This commit is contained in:
parent
25f069d54c
commit
7faf26cbac
|
@ -0,0 +1,20 @@
|
||||||
|
# Broadcom 2835 on Raspberry Pi as JTAG host
|
||||||
|
|
||||||
|
interface bcm2835gpio
|
||||||
|
|
||||||
|
bcm2835gpio_peripheral_base 0x3F000000
|
||||||
|
|
||||||
|
# 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 146203 36
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# If you define trst or srst, use appropriate reset_config
|
||||||
|
# Header pin numbers: TRST - 26, SRST - 12
|
||||||
|
|
||||||
|
bcm2835gpio_trst_num 7
|
||||||
|
reset_config trst_only
|
|
@ -0,0 +1,25 @@
|
||||||
|
# Broadcom 2835 on Raspberry Pi as JTAG target
|
||||||
|
|
||||||
|
telnet_port 4444
|
||||||
|
gdb_port 5555
|
||||||
|
|
||||||
|
adapter_khz 1000
|
||||||
|
transport select jtag
|
||||||
|
|
||||||
|
if { [info exists CHIPNAME] } {
|
||||||
|
set _CHIPNAME $CHIPNAME
|
||||||
|
} else {
|
||||||
|
set _CHIPNAME rspi
|
||||||
|
}
|
||||||
|
|
||||||
|
if { [info exists CPU_TAPID ] } {
|
||||||
|
set _CPU_TAPID $CPU_TAPID
|
||||||
|
} else {
|
||||||
|
set _CPU_TAPID 0x07b7617F
|
||||||
|
}
|
||||||
|
|
||||||
|
jtag newtap $_CHIPNAME arm -irlen 5 -expected-id $_CPU_TAPID
|
||||||
|
|
||||||
|
set _TARGETNAME $_CHIPNAME.arm
|
||||||
|
target create $_TARGETNAME arm11 -chain-position $_TARGETNAME
|
||||||
|
$_TARGETNAME configure -event gdb-attach { halt }
|
Loading…
Reference in New Issue