diff --git a/openocd/common.cfg b/openocd/common.cfg new file mode 100644 index 0000000..bfe8a33 --- /dev/null +++ b/openocd/common.cfg @@ -0,0 +1,20 @@ +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 \ No newline at end of file diff --git a/openocd/cora-z7-10.cfg b/openocd/cora-z7-10.cfg index 5a8923c..abd12ea 100644 --- a/openocd/cora-z7-10.cfg +++ b/openocd/cora-z7-10.cfg @@ -8,26 +8,7 @@ source ./zynq-7000.cfg reset_config srst_only srst_push_pull -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 +source ./common.cfg reset halt diff --git a/openocd/kasli_soc.cfg b/openocd/kasli_soc.cfg index bd1ac60..9aeda27 100644 --- a/openocd/kasli_soc.cfg +++ b/openocd/kasli_soc.cfg @@ -17,26 +17,7 @@ reset_config srst_only srst_open_drain adapter srst pulse_width 250 adapter srst delay 400 -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 +source ./common.cfg reset halt diff --git a/openocd/redpitaya.cfg b/openocd/redpitaya.cfg index a54778b..1facb55 100644 --- a/openocd/redpitaya.cfg +++ b/openocd/redpitaya.cfg @@ -8,26 +8,7 @@ source ./zynq-7000.cfg reset_config none -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 +source ./common.cfg halt diff --git a/openocd/zc706.cfg b/openocd/zc706.cfg index 964a5a6..c99b263 100644 --- a/openocd/zc706.cfg +++ b/openocd/zc706.cfg @@ -10,26 +10,7 @@ reset_config srst_only srst_open_drain adapter srst pulse_width 250 adapter srst delay 400 -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 +source ./common.cfg reset halt