From f8a6a07149d88737f3d466e7ce620cc1f0874c6a Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Sat, 1 Mar 2014 22:40:54 +0400 Subject: 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 Reviewed-on: http://openocd.zylin.com/2003 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- tcl/target/stm32f4x.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcl/target/stm32f4x.cfg') 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 } -- cgit v1.1