forked from M-Labs/zynq-rs
1
0
Fork 0

openocd: adapt to newer version

This commit is contained in:
Sebastien Bourdeauducq 2021-06-25 17:01:02 +08:00
parent 104d1ef232
commit c7e9f85de2
5 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@
# this supports JTAG-HS2 (and apparently Nexys4 as well)
interface ftdi
adapter driver ftdi
ftdi_vid_pid 0x0403 0x6014
ftdi_channel 0

View File

@ -1,11 +1,11 @@
interface ftdi
adapter driver ftdi
ftdi_device_desc "Quad RS232-HS"
ftdi_vid_pid 0x0403 0x6011
ftdi_channel 0
# some GPIOs need to be set, otherwise the FTDI chip craps out for some reason.
ftdi_layout_init 0x0098 0x008b
transport select jtag
adapter_khz 1000
adapter speed 1000
set PL_TAPID 0x1372c093
set SMP 1
@ -14,8 +14,8 @@ source ./zynq-7000.cfg
ftdi_layout_signal nSRST -oe 0x0004
reset_config srst_only srst_open_drain
adapter_nsrst_assert_width 250
adapter_nsrst_delay 400
adapter srst pulse_width 250
adapter srst delay 400
set XC7_JSHUTDOWN 0x0d
set XC7_JPROGRAM 0x0b

View File

@ -1,5 +1,5 @@
source ./digilent-hs2.cfg
adapter_khz 1000
adapter speed 1000
set PL_TAPID 0x13722093
set SMP 1

View File

@ -1,5 +1,5 @@
source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
adapter_khz 1000
adapter speed 1000
set PL_TAPID 0x23731093
set SMP 1

View File

@ -81,15 +81,16 @@ jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x01 -irmask 0x03 \
set _TARGETNAME_0 $_CHIPNAME.cpu.0
set _TARGETNAME_1 $_CHIPNAME.cpu.1
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.dap
target create $_TARGETNAME_0 cortex_a -coreid 0 \
-endian $_ENDIAN \
-chain-position $_CHIPNAME.dap \
-dap $_CHIPNAME.dap \
-dbgbase 0x80090000
if { $_SMP } {
echo "Zynq CPU1."
target create $_TARGETNAME_1 cortex_a -coreid 1 \
-endian $_ENDIAN \
-chain-position $_CHIPNAME.dap \
-dap $_CHIPNAME.dap \
-dbgbase 0x80092000
target smp $_TARGETNAME_0 $_TARGETNAME_1
}