diff options
author | Paul Fertser <fercerpav@gmail.com> | 2014-03-01 22:40:54 +0400 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2014-06-28 09:28:12 +0000 |
commit | f8a6a07149d88737f3d466e7ce620cc1f0874c6a (patch) | |
tree | 2bc5c93183ad11608659fd3546297b21fd165eaa /tcl/target/stm32f4x.cfg | |
parent | 36772a7ed0c31a99c721d1ea9131a8ecc56a263d (diff) | |
download | riscv-openocd-f8a6a07149d88737f3d466e7ce620cc1f0874c6a.zip riscv-openocd-f8a6a07149d88737f3d466e7ce620cc1f0874c6a.tar.gz riscv-openocd-f8a6a07149d88737f3d466e7ce620cc1f0874c6a.tar.bz2 |
tcl: introduce using_(jtag|swd|hla) helpers and use them in reset handler
Barely tested with plain SWD transport.
Change-Id: I48b59136bf4294ffed737dba01f1b30ef83aa86b
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2003
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'tcl/target/stm32f4x.cfg')
-rw-r--r-- | tcl/target/stm32f4x.cfg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg index feca77c..30ec686 100644 --- a/tcl/target/stm32f4x.cfg +++ b/tcl/target/stm32f4x.cfg @@ -47,7 +47,7 @@ if { [info exists BSTAPID] } { set _BSTAPID2 0x06419041 } -if {$using_jtag} { +if {[using_jtag]} { jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 \ -expected-id $_BSTAPID2 } @@ -69,7 +69,7 @@ flash bank $_FLASHNAME stm32f2x 0 0 0 0 $_TARGETNAME adapter_khz 1000 adapter_nsrst_delay 100 -if {$using_jtag} { +if {[using_jtag]} { jtag_ntrst_delay 100 } |