2020-01-03 18:07:07 +08:00
|
|
|
source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
|
2021-06-25 17:01:02 +08:00
|
|
|
adapter speed 1000
|
2019-06-29 08:41:36 +08:00
|
|
|
|
2019-09-29 05:53:40 +08:00
|
|
|
set PL_TAPID 0x23731093
|
2019-06-29 08:41:36 +08:00
|
|
|
set SMP 1
|
|
|
|
|
|
|
|
source ./zynq-7000.cfg
|
|
|
|
|
2020-01-03 18:07:07 +08:00
|
|
|
reset_config srst_only srst_open_drain
|
2021-06-25 17:43:05 +08:00
|
|
|
adapter srst pulse_width 250
|
|
|
|
adapter srst delay 400
|
2019-06-29 08:41:36 +08:00
|
|
|
|
|
|
|
set XC7_JSHUTDOWN 0x0d
|
|
|
|
set XC7_JPROGRAM 0x0b
|
|
|
|
set XC7_JSTART 0x0c
|
|
|
|
set XC7_BYPASS 0x3f
|
|
|
|
|
|
|
|
proc xc7_program {tap} {
|
|
|
|
global XC7_JSHUTDOWN XC7_JPROGRAM XC7_JSTART XC7_BYPASS
|
|
|
|
irscan $tap $XC7_JSHUTDOWN
|
|
|
|
irscan $tap $XC7_JPROGRAM
|
|
|
|
runtest 60000
|
|
|
|
#JSTART prevents this from working...
|
|
|
|
#irscan $tap $XC7_JSTART
|
|
|
|
runtest 2000
|
|
|
|
irscan $tap $XC7_BYPASS
|
|
|
|
runtest 2000
|
|
|
|
}
|
|
|
|
|
|
|
|
pld device virtex2 zynq.tap 1
|
|
|
|
init
|
|
|
|
xc7_program zynq.tap
|
|
|
|
|
2020-09-09 14:58:18 +08:00
|
|
|
reset halt
|
2019-06-29 08:41:36 +08:00
|
|
|
|
|
|
|
# Disable MMU
|
|
|
|
targets $_TARGETNAME_1
|
2021-12-03 18:42:45 +08:00
|
|
|
arm mcr 15 0 1 0 0 [expr { [arm mrc 15 0 1 0 0] & ~0xd }]
|
2019-06-29 08:41:36 +08:00
|
|
|
targets $_TARGETNAME_0
|
2021-12-03 18:42:45 +08:00
|
|
|
arm mcr 15 0 1 0 0 [expr { [arm mrc 15 0 1 0 0] & ~0xd }]
|