summaryrefslogtreecommitdiff
path: root/tcl/target/stm32.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/stm32.cfg')
-rw-r--r--tcl/target/stm32.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/target/stm32.cfg b/tcl/target/stm32.cfg
index 04cee234..b2c63783 100644
--- a/tcl/target/stm32.cfg
+++ b/tcl/target/stm32.cfg
@@ -57,7 +57,7 @@ if { [info exists BSTAPID ] } {
}
jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID1 -expected-id $_BSTAPID2 -expected-id $_BSTAPID3 -expected-id $_BSTAPID4 -expected-id $_BSTAPID5
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
+set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0