summaryrefslogtreecommitdiff
path: root/tcl/target/sam7x256.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/sam7x256.cfg')
-rw-r--r--tcl/target/sam7x256.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcl/target/sam7x256.cfg b/tcl/target/sam7x256.cfg
index 789f7dd6..b659dd5f 100644
--- a/tcl/target/sam7x256.cfg
+++ b/tcl/target/sam7x256.cfg
@@ -21,9 +21,9 @@ if { [info exists CPUTAPID ] } {
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -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-init {
# disable watchdog
mww 0xfffffd44 0x00008000