David Brownell <david-b@pacbell.net> "set _TARGETNAME ..." cleanup
[fw/openocd] / tcl / target / pic32mx.cfg
index 139f801f78b16397e253d87b8cc76ad67316925e..009a3cd158256a095e5a1ace2419bb2e7e723bfb 100644 (file)
@@ -28,7 +28,7 @@ reset_config srst_only
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag newtap $_CHIPNAME cpu -irlen 5  -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
 
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
+set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_TARGETNAME
 
 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0xa0000000 -work-area-size 16384 -work-area-backup 0