David Brownell <david-b@pacbell.net> "set _TARGETNAME ..." cleanup
[fw/openocd] / tcl / target / str710.cfg
index 2d9d2fc4b052dfb99ec6a40ea119d67e8f902e99..39745717d79208191bd9b5c7307f2ed494d0d213 100644 (file)
@@ -26,8 +26,9 @@ reset_config trst_and_srst srst_pulls_trst
 
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_CPUTAPID
 
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
+set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
+
 $_TARGETNAME configure -event reset-start { jtag_khz 10 }
 $_TARGETNAME configure -event reset-init { jtag_khz 6000 }
 $_TARGETNAME configure -event gdb-flash-erase-start {