target config files: Fix whitespace issues.
authorUwe Hermann <uwe@hermann-uwe.de>
Sat, 29 Oct 2011 21:32:17 +0000 (23:32 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 7 Nov 2011 16:16:33 +0000 (16:16 +0000)
Drop useless double-space occurences, drop trailing whitespace, and fix
some other minor whitespace-related issues.

Change-Id: I6b4c515492e2ee94dc25ef1fe4f51015a4bba8b5
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/137
Tested-by: jenkins
86 files changed:
tcl/board/at91cap7a-stk-sdram.cfg
tcl/board/at91eb40a.cfg
tcl/board/digi_connectcore_wi-9c.cfg
tcl/board/hitex_str9-comstick.cfg
tcl/board/mini2440.cfg
tcl/board/str910-eval.cfg
tcl/board/zy1000.cfg
tcl/chip/atmel/at91/at91sam9_init.cfg
tcl/target/aduc702x.cfg
tcl/target/amdm37x.cfg
tcl/target/at91r40008.cfg
tcl/target/at91rm9200.cfg
tcl/target/at91sam3XXX.cfg
tcl/target/at91sam3nXX.cfg
tcl/target/at91sam7se512.cfg
tcl/target/at91sam7sx.cfg
tcl/target/at91sam7x256.cfg
tcl/target/at91sam9.cfg
tcl/target/at91sam9260_ext_RAM_ext_flash.cfg
tcl/target/at91sam9rl.cfg
tcl/target/atmega128.cfg
tcl/target/avr32.cfg
tcl/target/c100.cfg
tcl/target/cs351x.cfg
tcl/target/davinci.cfg
tcl/target/dragonite.cfg
tcl/target/dsp56321.cfg
tcl/target/dsp568013.cfg
tcl/target/dsp568037.cfg
tcl/target/epc9301.cfg
tcl/target/faux.cfg
tcl/target/feroceon.cfg
tcl/target/fm3.cfg
tcl/target/hilscher_netx10.cfg
tcl/target/hilscher_netx50.cfg
tcl/target/hilscher_netx500.cfg
tcl/target/icepick.cfg
tcl/target/imx.cfg
tcl/target/imx21.cfg
tcl/target/imx25.cfg
tcl/target/imx27.cfg
tcl/target/imx31.cfg
tcl/target/imx35.cfg
tcl/target/imx51.cfg
tcl/target/imx53.cfg
tcl/target/is5114.cfg
tcl/target/ixp42x.cfg
tcl/target/k40.cfg
tcl/target/lpc1768.cfg
tcl/target/lpc2900.cfg
tcl/target/lpc2xxx.cfg
tcl/target/lpc3131.cfg
tcl/target/lpc3250.cfg
tcl/target/mc13224v.cfg
tcl/target/nuc910.cfg
tcl/target/omap2420.cfg
tcl/target/omap3530.cfg
tcl/target/omap4430.cfg
tcl/target/omap5912.cfg
tcl/target/omapl138.cfg
tcl/target/pic32mx.cfg
tcl/target/pxa255.cfg
tcl/target/pxa270.cfg
tcl/target/pxa3xx.cfg
tcl/target/samsung_s3c2410.cfg
tcl/target/samsung_s3c2440.cfg
tcl/target/samsung_s3c2450.cfg
tcl/target/samsung_s3c4510.cfg
tcl/target/samsung_s3c6410.cfg
tcl/target/sharp_lh79532.cfg
tcl/target/smp8634.cfg
tcl/target/spear3xx.cfg
tcl/target/stellaris.cfg
tcl/target/stm32f1x.cfg
tcl/target/stm32f2x.cfg
tcl/target/stm32l.cfg
tcl/target/str710.cfg
tcl/target/str730.cfg
tcl/target/str750.cfg
tcl/target/str912.cfg
tcl/target/ti_dm355.cfg
tcl/target/ti_dm365.cfg
tcl/target/ti_dm6446.cfg
tcl/target/tmpa900.cfg
tcl/target/tmpa910.cfg
tcl/target/u8500.cfg

index 72d9e0184847083abd7d44b9968715086ce26b60..849d8cf2b9ae44f30c7e171a9f3919c5533b7dc7 100644 (file)
@@ -15,7 +15,7 @@ if { [info exists ENDIAN] } {
    set  _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x40700f0f
index b43dee3d810dc6604f120a4b0e7813f255cb8b55..8b05873168c343b2aa4ad82766e8ba4b67fe0319 100644 (file)
@@ -16,7 +16,7 @@ if { [info exists ENDIAN] } {
    set  _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x1f0f0f0f
index 094e70e909b4b2d8194068833c2d9d7b068667f6..8a8d4c3bfb69108b4ea4fcb3dfbd1178b348e78e 100644 (file)
@@ -27,7 +27,7 @@ if { [info exists ENDIAN] } {
 jtag_rclk 1000
 
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07926031
index c85681b186ea4e4425f98241355dc59bcf29e17b..f482fa26ff4c6cd10c96dce55f63f0cb60956be9 100644 (file)
@@ -31,21 +31,21 @@ if { [info exists ENDIAN] } {
    set  _ENDIAN little
 }
 
-if { [info exists FLASHTAPID ] } {
+if { [info exists FLASHTAPID] } {
    set _FLASHTAPID $FLASHTAPID
 } else {
    set _FLASHTAPID 0x04570041
 }
 jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x25966041
 }
 jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-if { [info exists BSTAPID ] } {
+if { [info exists BSTAPID] } {
    set _BSTAPID $BSTAPID
 } else {
    # Found on STR9-comStick, revision STR912CS-A1
index a0345387dc8603805c90785c1e0dcd38625263d3..874f829ab17b1fa54679adec01f5d0831bf8b7c3 100644 (file)
@@ -97,7 +97,7 @@ if { [info exists ENDIAN] } {
    set  _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x0032409d
index 38a1477cdac13429c2c6385c987aad99cc8012cf..5fe7a4e733d06f9b2fd4836311df0b99ffcd5bde 100644 (file)
@@ -19,7 +19,7 @@ if { [info exists ENDIAN] } {
    set  _ENDIAN little
 }
 
-if { [info exists FLASHTAPID ] } {
+if { [info exists FLASHTAPID] } {
    set _FLASHTAPID $FLASHTAPID
 } else {
    set _FLASHTAPID 0x04570041
@@ -27,14 +27,14 @@ if { [info exists FLASHTAPID ] } {
 jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID
 
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x25966041
 }
 jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-if { [info exists BSTAPID ] } {
+if { [info exists BSTAPID] } {
    set _BSTAPID $BSTAPID
 } else {
    set _BSTAPID 0x1457f041
index 63334eeb24915580ea8b2110085216f4c447a418..57deaa8375f327aebfab1f321d1c5e5040e613fe 100644 (file)
@@ -24,7 +24,7 @@ if { [info exists ENDIAN] } {
 
 
 #jtag scan chain
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x1f0f0f0f
index d75d668809f61b0fa994fa9563f397ede5d45b87..64a2fcff32d66f43787784c89ba3a4c27665e875 100644 (file)
@@ -54,7 +54,7 @@ proc at91sam9_reset_init { config } {
        set rstc_mr_val [expr ($rstc_mr_val | $::AT91_RSTC_URSTEN)]
        mww $::AT91_RSTC_MR $rstc_mr_val        ;# user reset enable
 
-       if { [info exists config(sdram_piod) ] } {
+       if { [info exists config(sdram_piod)] } {
                set pdr_addr    [expr ($::AT91_PIOD + $::PIO_PDR)]
                set pudr_addr   [expr ($::AT91_PIOD + $::PIO_PUDR)]
                set asr_addr    [expr ($::AT91_PIOD + $::PIO_ASR)]
index dcb9c12f2a85b2364ceac345e84628af1f624895..f06dc33f46982565c0e3f0fabf6651280338acfb 100644 (file)
@@ -1,20 +1,20 @@
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME aduc702x
+   set _CHIPNAME aduc702x
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-  # This config file was defaulting to big endian..
-   set  _ENDIAN little
+   # This config file was defaulting to big endian..
+   set _ENDIAN little
 }
 
 if { [info exists CPUTAPID] } {
-   set  _CPUTAPID $CPUTAPID
+   set _CPUTAPID $CPUTAPID
 } else {
-   set  _CPUTAPID 0x3f0f0f0f
+   set _CPUTAPID 0x3f0f0f0f
 }
 
 adapter_nsrst_delay 200
index b1bd25ce8db815aecf6f24ae7e95d14128b25deb..3121e8fd55178c34381993dc75013b26f1608c2b 100644 (file)
@@ -21,9 +21,9 @@
 if { [info exists CHIPTYPE] } {
 
    if { [info exists CHIPNAME] } {
-      set  _CHIPNAME $CHIPNAME
+      set _CHIPNAME $CHIPNAME
    } else {
-      set  _CHIPNAME $CHIPTYPE
+      set _CHIPNAME $CHIPTYPE
    }
 
    switch $CHIPTYPE {
index 9c0c4839cef7d79a44ee92d85c0cfaa554f6d6c3..2d286ab5faba1a44c45940f1f2e607ff9ada46e6 100644 (file)
@@ -5,19 +5,19 @@ reset_config srst_only srst_pulls_trst
 
 
 if {[info exists CHIPNAME]} {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME at91r40008
+   set _CHIPNAME at91r40008
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # Setup the JTAG scan chain.
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x1f0f0f0f
index a9cda192a4f7dfa87c9b7102d680a7417bfa2448..2e8c1e091f7788dfa2abdda61ec61cae7888f2aa 100644 (file)
@@ -2,18 +2,18 @@
 # http://atmel.com/products/at91/
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME at91rm9200
+   set _CHIPNAME at91rm9200
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x05b0203f
index 517a871911179a666d6de89e39616263849d3dec..a13e39901368f74464790ee7f17c559d86bf0d60 100644 (file)
 # at91sam3s1a
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME sam3
+   set _CHIPNAME sam3
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-
 #jtag scan chain
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x4ba00477
index 5392824f5ec934dedf4f463ab3d1d9b6c5db5eb3..9e362b26698abcfeb6de47d03589cd0d6c9a725b 100644 (file)
@@ -9,7 +9,7 @@ if { [info exists CHIPNAME] } {
        set _CHIPNAME at91sam3n
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
        set _CPUTAPID $CPUTAPID
 } else {
        set _CPUTAPID 0x4ba00477
index 7273a069bc26c49e1392756b983404a89cc7dc58..17d0d8e4bdffa9f64f915891365c4f5a295bd5ad 100644 (file)
@@ -1,21 +1,20 @@
-
 # ATMEL sam7se512
 # Example: the "Elektor Internet Radio" - EIR
 # http://www.ethernut.de/en/hardware/eir/index.html
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME sam7se512
+   set _CHIPNAME sam7se512
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    # Force an error until we get a good number.
index 6cbd6b674146982dbb8b8f84de40c9e1765cbb82..20e468999bf0ef521569e800a1847103047320a9 100644 (file)
@@ -2,18 +2,18 @@
 reset_config srst_only srst_pulls_trst
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME at91sam7s
+   set _CHIPNAME at91sam7s
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x3f0f0f0f
index dd364585feba5a7b407449600893608f646114db..d1bfc770200739bb94a8c6b7998e251f064fa79b 100644 (file)
@@ -2,18 +2,18 @@
 reset_config srst_only srst_pulls_trst
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME sam7x256
+   set _CHIPNAME sam7x256
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x3f0f0f0f
index 08154ceac77ea6ef077894c8a3c6bd83db4c4ed1..e6b297dcd8d8c8c60522410b59b221f8153e9108 100644 (file)
@@ -14,7 +14,7 @@ if { [info exists ENDIAN] } {
        set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
        set _CPUTAPID $CPUTAPID
 } else {
        set _CPUTAPID 0x0792603f
index 8df2852763131175510809c1852c444bd54cb631..f7121ec9ab156e27a09db2c14bb195620c64aa46 100644 (file)
@@ -27,7 +27,7 @@ flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 $_TARGETNAME
 # Faster memory downloads. This is disabled automatically during
 # reset init since all reset init sequences are too short for
 # fast memory access
-arm7_9 dcc_downloads enable     
+arm7_9 dcc_downloads enable
 arm7_9 fast_memory_access enable
 
 proc at91sam_init { } {
index 769c4f725522e18d3cb76381d72782c0f3fa506d..db0522928b4019f82cd42abe2a83bec60308c757 100644 (file)
@@ -3,9 +3,9 @@
 ######################################
 
 if { [info exists CHIPNAME] } {
-   set  AT91_CHIPNAME $CHIPNAME
+   set AT91_CHIPNAME $CHIPNAME
 } else {
-   set  AT91_CHIPNAME at91sam9rl
+   set AT91_CHIPNAME at91sam9rl
 }
 
 source [find target/at91sam9.cfg]
index 212a26731dd54ef7b939aa7ca6295a2b8474cb53..b8f7d0175d004738f3484f61a5bffc7314601b30 100644 (file)
@@ -1,16 +1,16 @@
 # for avr
 
-   set  _CHIPNAME avr
-   set  _ENDIAN little
+   set _CHIPNAME avr
+   set _ENDIAN little
 
 # jtag speed
 adapter_khz 4500
 
-reset_config  srst_only
+reset_config srst_only
 adapter_nsrst_delay 100
 
 #jtag scan chain
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x8970203F
index 1a2ea330ac6fffec33d384910bc84112071750a8..932b750514e1a1c6f1d217b5993a9375a0eaee09 100644 (file)
@@ -1,7 +1,7 @@
-set  _CHIPNAME avr32
-set  _ENDIAN big
+set _CHIPNAME avr32
+set _ENDIAN big
 
-set _CPUTAPID  0x21e8203f
+set _CPUTAPID 0x21e8203f
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
@@ -10,7 +10,7 @@ reset_config trst_and_srst separate
 
 # jtag scan chain
 # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
-jtag newtap $_CHIPNAME cpu -irlen 5  -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID
+jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID
 
 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
 target create $_TARGETNAME avr32_ap7k -endian $_ENDIAN -chain-position $_TARGETNAME
index 23eca0c79999f57100a171c28d7ec28f97a1d4e9..1eaa8fe8a640cb5f07fb9f0d3b8cf7852ce2f54b 100644 (file)
@@ -6,24 +6,24 @@
 adapter_khz 100
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME c100
+   set _CHIPNAME c100
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x27b3645b
 }
 
-if { [info exists DSPTAPID ] } {
+if { [info exists DSPTAPID] } {
    set _DSPTAPID $DSPTAPID
 } else {
    set _DSPTAPID 0x27b3645b
index 243f96397598af1ad7ee7426812bcbbcede22c70..0785d538a0aa314cb16791c62a57a84b7b0902e3 100644 (file)
@@ -1,22 +1,22 @@
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME cs351x
+   set _CHIPNAME cs351x
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x00526fa1
 }
 
-jtag newtap $_CHIPNAME cpu  -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
 # Create the GDB Target.
 set _TARGETNAME $_CHIPNAME.cpu
@@ -24,7 +24,7 @@ target create $_TARGETNAME fa526 -endian $_ENDIAN -chain-position $_TARGETNAME -
 
 # There is 16K of SRAM on this chip
 # FIXME: flash programming is not working by using this work area. So comment this out for now.
-#$_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size  0x4000 -work-area-backup 1
+#$_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x4000 -work-area-backup 1
 
 # This chip has a DCC ... use it
 arm7_9 dcc_downloads enable
index 9e9369dc185c7c35fd16f0ec66f339b37b587df1..859a92539a0a0faef1854cbef78d8e89c56b444a 100644 (file)
@@ -2,7 +2,7 @@
 # Utility code for DaVinci-family chips
 #
 
-# davinci_pinmux:  assigns PINMUX$reg <== $value
+# davinci_pinmux: assigns PINMUX$reg <== $value
 proc davinci_pinmux {soc reg value} {
        mww [expr [dict get $soc sysbase] + 4 * $reg] $value
 }
@@ -20,13 +20,13 @@ source [find mem_helper.tcl]
 #
 
 # PLL version 0x02: tested on dm355
-# REVISIT:  On dm6446/dm357 the PLLRST polarity is different.
+# REVISIT: On dm6446/dm357 the PLLRST polarity is different.
 proc pll_v02_setup {pll_addr mult config} {
        set pll_ctrl_addr [expr $pll_addr + 0x100]
        set pll_ctrl [mrw $pll_ctrl_addr]
 
        # 1 - clear CLKMODE (bit 8) iff using on-chip oscillator
-       # NOTE:  this assumes we should clear that bit
+       # NOTE: this assumes we should clear that bit
        set pll_ctrl [expr $pll_ctrl & ~0x0100]
        mww $pll_ctrl_addr $pll_ctrl
 
@@ -57,8 +57,8 @@ proc pll_v02_setup {pll_addr mult config} {
        set pll_ctrl [expr $pll_ctrl & ~0x0010]
        mww $pll_ctrl_addr $pll_ctrl
 
-       # 9 - optional:  write prediv, postdiv, and pllm
-       # NOTE:  for dm355 PLL1, postdiv is controlled via MISC register
+       # 9 - optional: write prediv, postdiv, and pllm
+       # NOTE: for dm355 PLL1, postdiv is controlled via MISC register
        mww [expr $pll_addr + 0x0110] [expr ($mult - 1) & 0xff]
        if { [dict exists $config prediv] } {
                set div [dict get $config prediv]
@@ -71,7 +71,7 @@ proc pll_v02_setup {pll_addr mult config} {
                mww [expr $pll_addr + 0x0128] $div
        }
 
-       # 10 - optional:  set plldiv1, plldiv2, ...
+       # 10 - optional: set plldiv1, plldiv2, ...
        # NOTE:  this assumes some registers have their just-reset values:
        #       - PLLSTAT.GOSTAT is clear when we enter
        #       - ALNCTL has everything set
@@ -162,7 +162,7 @@ proc pll_v03_setup {pll_addr mult config} {
        set pll_ctrl [expr $pll_ctrl & ~0x0008]
        mww $pll_ctrl_addr $pll_ctrl
 
-       # 9 - optional:  write prediv, postdiv, and pllm
+       # 9 - optional: write prediv, postdiv, and pllm
        mww [expr $pll_addr + 0x0110] [expr ($mult / 2) & 0x1ff]
        if { [dict exists $config prediv] } {
                set div [dict get $config prediv]
@@ -181,8 +181,8 @@ proc pll_v03_setup {pll_addr mult config} {
        mww $pll_secctrl_addr 0x00400000
        mww $pll_secctrl_addr 0x00410000
 
-       # 11 - optional:  set plldiv1, plldiv2, ...
-       # NOTE:  this assumes some registers have their just-reset values:
+       # 11 - optional: set plldiv1, plldiv2, ...
+       # NOTE: this assumes some registers have their just-reset values:
        #       - PLLSTAT.GOSTAT is clear when we enter
        set aln 0
        if { [dict exists $config div1] } {
@@ -283,7 +283,7 @@ proc pll_v03_setup {pll_addr mult config} {
        mww $pll_ctrl_addr $pll_ctrl
 }
 
-# NOTE:  dm6446 requires EMURSTIE set in MDCTL before certain
+# NOTE: dm6446 requires EMURSTIE set in MDCTL before certain
 # modules can be enabled.
 
 # prepare a non-DSP module to be enabled; finish with psc_go
index 7e85624c5e67fddee79ddc5a8ec28fc8b5538b11..750fd6437cb46de0bc9a329ff3317ed65de5c095 100644 (file)
@@ -3,18 +3,18 @@
 ######################################
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME dragonite
+   set _CHIPNAME dragonite
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x121003d3
index 74279d997bb887e8b1facf639c35b01f884c4180..6f3222373f36e04368fd721b367521d753f5305a 100644 (file)
@@ -2,19 +2,19 @@
 #
 
 if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME dsp56321
+   set _CHIPNAME $CHIPNAME
+} else {
+   set _CHIPNAME dsp56321
 }
 
 if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
+   set _ENDIAN $ENDIAN
+} else {
   # this defaults to a big endian
-   set  _ENDIAN big
+   set _ENDIAN big
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x1181501d
index 2b25ed7e3b06b91c39e42f332accc2f169bc5f21..0c491fa959cc03eb9edc9061714ead73593ebb6f 100644 (file)
@@ -1,19 +1,19 @@
 # Script for freescale DSP568013
 
 if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME dsp568013
+   set _CHIPNAME $CHIPNAME
+} else {
+   set _CHIPNAME dsp568013
 }
 
 if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
+   set _ENDIAN $ENDIAN
+} else {
   # this defaults to a big endian
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x01f2401d
@@ -60,11 +60,11 @@ jtag configure $_CHIPNAME.chp -event tap-enable "
 #disables the master tap
 jtag configure $_TARGETNAME -event tap-disable "
 "
-#TODO FIND  SMARTER WAY.
+#TODO FIND SMARTER WAY.
 
 jtag configure $_CHIPNAME.chp -event tap-disable "
 "
-#TODO FIND  SMARTER WAY.
+#TODO FIND SMARTER WAY.
 
 
 #working area at base of ram
index 21eb0b70441ad0d77ffa8dbd93de09479fd3dafd..01194d0028ad2f18965dcf0c10d282b3138dcfcd 100644 (file)
@@ -1,19 +1,19 @@
 # Script for freescale DSP568037
 
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME dsp568037
+if { [info exists CHIPNAME] } {
+   set _CHIPNAME $CHIPNAME
+} else {
+   set _CHIPNAME dsp568037
 }
 
-if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
+if { [info exists ENDIAN] } {
+   set _ENDIAN $ENDIAN
+} else {
   # this defaults to a big endian
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x01f2801d
@@ -56,11 +56,11 @@ jtag configure $_CHIPNAME.chp -event tap-enable "
 #disables the master tap
 jtag configure $_TARGETNAME -event tap-disable "
 "
-#TODO FIND  SMARTER WAY.
+#TODO FIND SMARTER WAY.
 
 jtag configure $_CHIPNAME.chp -event tap-disable "
 "
-#TODO FIND  SMARTER WAY.
+#TODO FIND SMARTER WAY.
 
 
 #working area at base of ram
index 6b67b9dcabf58f062ffa75bdbc4ced638199362f..f186d37dc680410482dc905150c3449472cf71dd 100644 (file)
@@ -1,18 +1,18 @@
 # Cirrus Logic EP9301 processor on an Olimex CS-E9301 board.
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME ep9301
+   set _CHIPNAME ep9301
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    # Force an error until we get a good number.
index b2bdb2b6a89f371962662f79a2443a0d29009c0e..fc905bfecd74dbc59c30b1a453bb84a3c4f54943 100644 (file)
@@ -1,18 +1,18 @@
 #Script for faux target - used for testing
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME at91eb40a
+   set _CHIPNAME at91eb40a
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x00000000
index e90165b4d64b74570b3acc6e45fe71e88fca4315..389576e55c7e0fd058cf0986c1c390aad45043f3 100644 (file)
@@ -3,18 +3,18 @@
 ######################################
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME feroceon
+   set _CHIPNAME feroceon
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x20a023d3
index af7647d878d5217a8c42e24a1de75655fc2874e8..78df11b1ec9595d8139a328b6a5b25d308e1e0e6 100644 (file)
@@ -2,18 +2,18 @@
 # Fujitsu Cortex-M3 with 512kB Flash and 64kB RAM
 
 if { [info exists CHIPNAME] } {
-       set  _CHIPNAME $CHIPNAME
+       set _CHIPNAME $CHIPNAME
 } else {
-       set  _CHIPNAME mb9bf500
+       set _CHIPNAME mb9bf500
 }
 
 if { [info exists ENDIAN] } {
-       set  _ENDIAN $ENDIAN
+       set _ENDIAN $ENDIAN
 } else {
-       set  _ENDIAN little
+       set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
        set _CPUTAPID $CPUTAPID
 } else {
        set _CPUTAPID 0x4ba00477
index 14ff95da2cb9549b174ef7520e37727bd4fe1e73..3f96607c6a944cd49a739ff4319ca34ea2cac15c 100644 (file)
@@ -5,18 +5,18 @@
 #Hilscher netX 10 CPU
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME netx10
+   set _CHIPNAME netx10
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x25966021
index 1129544e9757550b966b5c8fbf21bc01a55030e1..c6510c613810348d27e79cb000f264d927e1f43a 100644 (file)
@@ -5,18 +5,18 @@
 #Hilscher netX 50 CPU
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME netx50
+   set _CHIPNAME netx50
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x25966021
index 3b9e3d8e9b75f20b4734480503828bcefe0bcef4..93375fd819f65f85198dcbb5da49b5936c874ae6 100644 (file)
@@ -1,18 +1,18 @@
 #Hilscher netX 500 CPU
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME netx500
+   set _CHIPNAME netx500
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07926021
@@ -36,8 +36,8 @@ proc mread32 {addr} {
 proc sdram_fix { } {
 
   set accesskey [mread32 0x00100070]
-  mww  0x00100070 [expr $accesskey]
-  mww  0x0010002c 0x00000001
+  mww 0x00100070 [expr $accesskey]
+  mww 0x0010002c 0x00000001
 
   if {[expr [mread32 0x0010002c] & 0x07] == 0x07} {
         puts "SDRAM Fix was not executed. Probably your CPU halted too late and the register is already locked!"
index ff73138ccaa2ceec9cac817576f23fbfdc90be06..093d2092fc0f1ce76300264e22bd892442fcc01d 100644 (file)
@@ -83,7 +83,7 @@ proc icepick_c_tapenable {jrc port} {
 #      echo "Configuring the ICEpick"
        icepick_c_setup $jrc
 
-       # NOTE:  it's important not to enter RUN/IDLE state until
+       # NOTE: it's important not to enter RUN/IDLE state until
        # done sending these instructions and data to the ICEpick.
        # And never to enter RESET, which will disable the TAPs.
 
index 547ec56cc472375a91ce5f06daccba38bb4caedb..9eea53eef2194305a03540b177136beba5c4f76f 100644 (file)
@@ -1,6 +1,6 @@
 # utility fn's for Freescale i.MX series
 
-global TARGETNAME 
+global TARGETNAME
 set TARGETNAME $_TARGETNAME
 
 # rewrite commands of the form below to arm11 mcr...
@@ -8,9 +8,9 @@ set TARGETNAME $_TARGETNAME
 proc setc15 {regs value} {
        global TARGETNAME 
 
-       echo [format "set p15 0x%04x, 0x%08x" $regs $value] 
+       echo [format "set p15 0x%04x, 0x%08x" $regs $value]
 
-       arm mcr 15 [expr ($regs>>12)&0x7] [expr ($regs>>0)&0xf] [expr ($regs>>4)&0xf] [expr ($regs>>8)&0x7] $value 
+       arm mcr 15 [expr ($regs>>12)&0x7] [expr ($regs>>0)&0xf] [expr ($regs>>4)&0xf] [expr ($regs>>8)&0x7] $value
 }
 
 
@@ -18,12 +18,12 @@ proc imx3x_reset {} {
        # this reset script comes from the Freescale PDK
        #
        # http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX35PDK
-       
+
        echo "Target Setup: initialize DRAM controller and peripherals"
-       
+
 #      Data.Set c15:0x01 %long 0x00050078
        setc15 0x01 0x00050078
-       
+
        echo "configuring CP15 for enabling the peripheral bus"
 #      Data.Set c15:0x042f %long 0x40000015
        setc15 0x042f 0x40000015
index 410bce8fc3a3641c6b6e113504648f5f51cadc3b..9a5e3ad946aa87e6783ba3c00c0b2003795e422f 100644 (file)
@@ -4,27 +4,27 @@
 reset_config trst_and_srst
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME imx21
+   set _CHIPNAME imx21
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 
 # Note above there is 1 tap
 
 # The CPU tap
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x0792611f
 }
-jtag newtap $_CHIPNAME cpu  -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
 
 # Create the GDB Target.
index ead66102f0f8d014ed4b605ae7ed4d9bc9aaafcb..bc91278c4efcc4c23970cf54354a2f6829992b16 100644 (file)
@@ -3,25 +3,25 @@
 #
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME imx25
+   set _CHIPNAME imx25
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists ETBTAPID ] } {
+if { [info exists ETBTAPID] } {
    set _ETBTAPID $ETBTAPID
 } else {
    set _ETBTAPID 0x1b900f0f
 }
 jtag newtap $_CHIPNAME etb -irlen 4 -irmask 0x0f -expected-id $_ETBTAPID
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07926041
@@ -30,7 +30,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
 
 jtag newtap $_CHIPNAME whatchacallit -irlen 4 -ircapture 0x0 -irmask 0x0 -expected-id 0x0
 
-if { [info exists SDMATAPID ] } {
+if { [info exists SDMATAPID] } {
    set _SDMATAPID $SDMATAPID
 } else {
    set _SDMATAPID 0x0882301d
index dabae6d70f8d621cc59dfb5d07e990f84eb7099a..5530e68488d3ca5169269714e0cfeb9a09361deb 100644 (file)
@@ -7,42 +7,42 @@
 reset_config trst_and_srst srst_pulls_trst
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME imx27
+   set _CHIPNAME imx27
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 
 # Note above there are 2 taps
 
 # trace buffer
-if { [info exists ETBTAPID ] } {
+if { [info exists ETBTAPID] } {
    set _ETBTAPID $ETBTAPID
 } else {
    set _ETBTAPID 0x1b900f0f
 }
-jtag newtap $_CHIPNAME etb  -irlen 4 -irmask 0xf -expected-id $_ETBTAPID
+jtag newtap $_CHIPNAME etb -irlen 4 -irmask 0xf -expected-id $_ETBTAPID
 
 # The CPU tap
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07926121
 }
-jtag newtap $_CHIPNAME cpu  -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
 # Create the GDB Target.
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
 # REVISIT what operating environment sets up this virtual address mapping?
 $_TARGETNAME configure -work-area-virt 0xffff4c00 -work-area-phys 0xffff4c00 \
-       -work-area-size  0x8000 -work-area-backup 1
+       -work-area-size 0x8000 -work-area-backup 1
 # Internal to the chip, there is 45K of SRAM
 #
 
index b9eddd0659d185abeddd16a9b33e1524e5c66148..ca639515f1badc6d60e1301772a7302af5487503 100644 (file)
@@ -6,30 +6,30 @@ reset_config trst_and_srst srst_gates_jtag
 adapter_nsrst_delay 5
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME imx31
+   set _CHIPNAME imx31
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07b3601d
 }
 
-if { [info exists SDMATAPID ] } {
+if { [info exists SDMATAPID] } {
    set _SDMATAPID $SDMATAPID
 } else {
    set _SDMATAPID 0x2190101d
 }
 
-if { [info exists ETBTAPID ] } {
+if { [info exists ETBTAPID] } {
    set _ETBTAPID $ETBTAPID
 } else {
    set _ETBTAPID 0x2b900f0f
index 8a6aa87027b9cf5e25876abe0010834f7ca47c9b..21495c23ccfa7e7fba28f46206e2a5a8b2f853bc 100644 (file)
@@ -5,30 +5,30 @@ reset_config trst_and_srst srst_gates_jtag
 jtag_ntrst_delay 100
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME imx35
+   set _CHIPNAME imx35
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07b3601d
 }
 
-if { [info exists SDMATAPID ] } {
+if { [info exists SDMATAPID] } {
    set _SDMATAPID $SDMATAPID
 } else {
    set _SDMATAPID 0x0882601d
 }
 
-if { [info exists ETBTAPID ] } {
+if { [info exists ETBTAPID] } {
    set _ETBTAPID $ETBTAPID
 } else {
    set _ETBTAPID 0x2b900f0f
index b1390ec2ef428117e02179b1534e5ed7d24decf5..706875d3737b614c9fc5d430bb2bd4e440aefbfd 100644 (file)
@@ -1,13 +1,13 @@
 # Freescale i.MX51
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME imx51
+   set _CHIPNAME imx51
 }
 
 # CoreSight Debug Access Port
-if { [info exists DAP_TAPID ] } {
+if { [info exists DAP_TAPID] } {
    set _DAP_TAPID $DAP_TAPID
 } else {
    set _DAP_TAPID 0x1ba00477
@@ -20,7 +20,7 @@ jtag newtap $_CHIPNAME DAP -irlen 4 -ircapture 0x1 -irmask 0xf \
 jtag newtap $_CHIPNAME SDMA -irlen 4 -ircapture 0x0 -irmask 0xf
 
 # SJC
-if { [info exists SJC_TAPID ] } {
+if { [info exists SJC_TAPID] } {
    set _SJC_TAPID SJC_TAPID
 } else {
    set _SJC_TAPID 0x0190c01d
@@ -29,7 +29,7 @@ if { [info exists SJC_TAPID ] } {
 jtag newtap $_CHIPNAME SJC -irlen 5 -ircapture 0x1 -irmask 0x1f \
         -expected-id $_SJC_TAPID -ignore-version
 
-# GDB target:  Cortex-A8, using DAP
+# GDB target: Cortex-A8, using DAP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.DAP
 
index b242fd6d0cc54c0feaa86206ae6e06a4a0977213..7194783e579eee86a876ff7b8d8a2a7dd237a99f 100644 (file)
@@ -1,13 +1,13 @@
 # Freescale i.MX53
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME imx53
+   set _CHIPNAME imx53
 }
 
 # CoreSight Debug Access Port
-if { [info exists DAP_TAPID ] } {
+if { [info exists DAP_TAPID] } {
    set _DAP_TAPID $DAP_TAPID
 } else {
    set _DAP_TAPID 0x1ba00477
@@ -20,7 +20,7 @@ jtag newtap $_CHIPNAME DAP -irlen 4 -ircapture 0x1 -irmask 0xf \
 jtag newtap $_CHIPNAME SDMA -irlen 4 -ircapture 0x0 -irmask 0xf
 
 # SJC
-if { [info exists SJC_TAPID ] } {
+if { [info exists SJC_TAPID] } {
    set _SJC_TAPID SJC_TAPID
 } else {
    set _SJC_TAPID 0x0190d01d
@@ -29,7 +29,7 @@ if { [info exists SJC_TAPID ] } {
 jtag newtap $_CHIPNAME SJC -irlen 5 -ircapture 0x1 -irmask 0x1f \
         -expected-id $_SJC_TAPID -ignore-version
 
-# GDB target:  Cortex-A8, using DAP
+# GDB target: Cortex-A8, using DAP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.DAP
 
index 56b9b65249a3cd8691a3dd8934e96cfc4dd7dca1..defd43c5267dbd5760b4e94c19b9bf5c60c69bc4 100644 (file)
@@ -3,19 +3,19 @@
 # ATMEL sold his product line to Insilica...
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME is5114
+   set _CHIPNAME is5114
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
   # this defaults to a little endian
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    # Force an error until we get a good number.
@@ -36,7 +36,7 @@ jtag newtap $_CHIPNAME unknown2 -irlen 5 -ircapture 1 -irmask 1
 
 #arm946e-s and
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME arm966e -endian $_ENDIAN  -chain-position $_TARGETNAME  -variant arm966e
+target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
 
 $_TARGETNAME configure -event reset-start { jtag_rclk 16 }
 $_TARGETNAME configure -event reset-init {
index 6e5857a57e36f8868ddc197f04c1389a25fda87c..9dd9f517f16949ba169bc89f78319da9af8034c5 100644 (file)
@@ -1,19 +1,19 @@
 #xscale ixp42x CPU
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME ixp42x
+   set _CHIPNAME ixp42x
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
   # this defaults to a bigendian
-   set  _ENDIAN big
+   set _ENDIAN big
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x19274013
@@ -36,21 +36,21 @@ global IXP425_SDRAM_IR_MODE_SET_CAS3_CMD
 set IXP425_SDRAM_IR_MODE_SET_CAS2_CMD  0x0000
 set IXP425_SDRAM_IR_MODE_SET_CAS3_CMD  0x0001
 
-global IXP42x_SDRAM_CL3                        
-global IXP42x_SDRAM_CL2                        
+global IXP42x_SDRAM_CL3
+global IXP42x_SDRAM_CL2
 set IXP42x_SDRAM_CL3                   0x0008
 set IXP42x_SDRAM_CL2                   0x0000
 
-global IXP42x_SDRAM_8MB_2Mx32_1BANK    
-global IXP42x_SDRAM_16MB_2Mx32_2BANK   
-global IXP42x_SDRAM_16MB_4Mx16_1BANK   
-global IXP42x_SDRAM_32MB_4Mx16_2BANK   
-global IXP42x_SDRAM_32MB_8Mx16_1BANK   
-global IXP42x_SDRAM_64MB_8Mx16_2BANK   
-global IXP42x_SDRAM_64MB_16Mx16_1BANK  
-global IXP42x_SDRAM_128MB_16Mx16_2BANK 
-global IXP42x_SDRAM_128MB_32Mx16_1BANK 
-global IXP42x_SDRAM_256MB_32Mx16_2BANK 
+global IXP42x_SDRAM_8MB_2Mx32_1BANK
+global IXP42x_SDRAM_16MB_2Mx32_2BANK
+global IXP42x_SDRAM_16MB_4Mx16_1BANK
+global IXP42x_SDRAM_32MB_4Mx16_2BANK
+global IXP42x_SDRAM_32MB_8Mx16_1BANK
+global IXP42x_SDRAM_64MB_8Mx16_2BANK
+global IXP42x_SDRAM_64MB_16Mx16_1BANK
+global IXP42x_SDRAM_128MB_16Mx16_2BANK
+global IXP42x_SDRAM_128MB_32Mx16_1BANK
+global IXP42x_SDRAM_256MB_32Mx16_2BANK
 
 set IXP42x_SDRAM_8MB_2Mx32_1BANK       0x0030
 set IXP42x_SDRAM_16MB_2Mx32_2BANK      0x0031
@@ -71,13 +71,13 @@ set IXP42x_SDRAM_256MB_32Mx16_2BANK 0x0015
 proc ixp42x_init_sdram { SDRAM_CFG REFRESH CASLAT } {
 
     switch $CASLAT {
-       2 { 
-           set SDRAM_CFG [expr $SDRAM_CFG | $::IXP42x_SDRAM_CL2 ] 
-           set CASCMD $::IXP425_SDRAM_IR_MODE_SET_CAS2_CMD 
+       2 {
+           set SDRAM_CFG [expr $SDRAM_CFG | $::IXP42x_SDRAM_CL2 ]
+           set CASCMD $::IXP425_SDRAM_IR_MODE_SET_CAS2_CMD
        }
        3 {
-           set SDRAM_CFG [expr $SDRAM_CFG | $::IXP42x_SDRAM_CL3 ] 
-           set CASCMD $::IXP425_SDRAM_IR_MODE_SET_CAS3_CMD 
+           set SDRAM_CFG [expr $SDRAM_CFG | $::IXP42x_SDRAM_CL3 ]
+           set CASCMD $::IXP425_SDRAM_IR_MODE_SET_CAS3_CMD
        }
        default { error [format "unsupported cas latency \"%s\" " $CASLAT] }
     }
index 9984bfcacaae2145e3df314d56acc06facaf505b..26b952b9952a3aa3c49e7680c3918dd96cca2a95 100644 (file)
@@ -19,7 +19,7 @@ if { [info exists ENDIAN] } {
     set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
     set _CPUTAPID $CPUTAPID
 } else {
     set _CPUTAPID 0x4ba00477
index 2059aedd866440b60e50532cfebb6f3440b4c901..6478b2cb064e746dc5cdb66e7be74261f35f17c9 100644 (file)
@@ -5,9 +5,9 @@
 source [find target/swj-dp.tcl]
 
 if { [info exists CHIPNAME] } {
-       set  _CHIPNAME $CHIPNAME
+       set _CHIPNAME $CHIPNAME
 } else {
-       set  _CHIPNAME lpc1768
+       set _CHIPNAME lpc1768
 }
 
 # After reset the chip is clocked by the ~4MHz internal RC oscillator.
@@ -17,12 +17,12 @@ if { [info exists CHIPNAME] } {
 # (The ROM code doing those updates cares about core clock speed...)
 #
 # CCLK is the core clock frequency in KHz
-if { [info exists CCLK ] } {
+if { [info exists CCLK] } {
        set _CCLK $CCLK
 } else {
        set _CCLK 4000
 }
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
        set _CPUTAPID $CPUTAPID
 } else {
        set _CPUTAPID 0x4ba00477
index b2580861ee06c43d140efc8831b9aaf8f5c7a183..6b174f89abc7b8176667e0e4cfe626acd3b8c8f7 100644 (file)
@@ -1,25 +1,25 @@
 
 if { [info exists CHIPNAME] } {
-    set  _CHIPNAME $CHIPNAME
+    set _CHIPNAME $CHIPNAME
 } else {
-    set  _CHIPNAME lpc2900
+    set _CHIPNAME lpc2900
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
     set _CPUTAPID $CPUTAPID
 } else {
     set _CPUTAPID 0x0596802B
 }
 
-if { [info exists HAS_ETB ] } {
+if { [info exists HAS_ETB] } {
 } else {
     # Set default (no ETB).
     # Show a warning, because this should have been configured explicitely.
     set HAS_ETB 0
-    # TODO   warning?
+    # TODO: warning?
 }
 
-if { [info exists ETBTAPID ] } {
+if { [info exists ETBTAPID] } {
     set _ETBTAPID $ETBTAPID
 } else {
     set _ETBTAPID 0x1B900F0F
@@ -60,7 +60,7 @@ arm7_9 dbgrq enable
 arm7_9 dcc_downloads enable
 
 # Flash bank configuration:
-# Flash:   flash bank lpc2900 0 0 0 0 <target#> <flash clock (CLK_SYS_FMC) in kHz>
+# Flash: flash bank lpc2900 0 0 0 0 <target#> <flash clock (CLK_SYS_FMC) in kHz>
 # Flash base address, total flash size, and number of sectors are all configured automatically.
 set _FLASHNAME $_CHIPNAME.flash
 flash bank $_FLASHNAME lpc2900 0 0 0 0 $_TARGETNAME $FLASH_CLOCK
index e9e8e6dced3d69f9420136854ba7282b20dec882..b946d44f8226109bdbbdb55cb384912529cf638c 100644 (file)
 
 proc setup_lpc2xxx {chip_name cputapids flash_size flash_variant workarea_size core_freq_khz adapter_freq_khz} {
        reset_config trst_and_srst
-       
+
        # reset delays
        adapter_nsrst_delay 100
        jtag_ntrst_delay 100
-       
+
        adapter_khz $adapter_freq_khz
-       
+
        foreach i $cputapids {
                append expected_ids "-expected-id " $i " "
        }
-       
+
        eval "jtag newtap $chip_name cpu -irlen 4 -ircapture 0x1 -irmask 0xf $expected_ids"
-       
+
        set _TARGETNAME $chip_name.cpu
        target create $_TARGETNAME arm7tdmi -chain-position $_TARGETNAME
-       
+
        $_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size $workarea_size -work-area-backup 0
-       
+
        if { $flash_size > 0 } {
                # flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum]
                set _FLASHNAME $chip_name.flash
index 560555b4a15514d292e2e2ff2e421c3fc6e8bf96..702b40618c18bfe1a6dddac3f2d33cf2a71e3d0c 100644 (file)
@@ -3,19 +3,19 @@
 ######################################
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME lpc3131
+   set _CHIPNAME lpc3131
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # ARM926EJS core
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07926f0f
@@ -24,7 +24,7 @@ if { [info exists CPUTAPID ] } {
 # Scan Tap
 # Wired to seperate STDO pin on the lpc3131, externally muxed to TDO on ea3131 module 
 # JTAGSEL pin must be 0 to activate, which reassigns arm tdo to a pass through.
-if { [info exists SJCTAPID ] } {
+if { [info exists SJCTAPID] } {
    set _SJCTAPID $SJCTAPID
 } else {
    set _SJCTAPID 0x1541E02B
index 02340ffaee0a65871bfb6b34e8a77779188ae1ec..14bb0f61ba6d0b4d3d17249f34dd47909140780f 100644 (file)
@@ -2,30 +2,30 @@
 #
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME lpc3250
+   set _CHIPNAME lpc3250
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x17900f0f
 }
 
-if { [info exists CPUTAPID_REV_A0 ] } {
+if { [info exists CPUTAPID_REV_A0] } {
    set _CPUTAPID_REV_A0 $CPUTAPID_REV_A0
 } else {
    set _CPUTAPID_REV_A0 0x17926f0f
 }
 
-if { [info exists SJCTAPID ] } {
+if { [info exists SJCTAPID] } {
    set _SJCTAPID $SJCTAPID
 } else {
    set _SJCTAPID 0x1b900f0f
index 33351caf0c80fd57c4006245348196cfc17011d6..8037125577e1b27130a8ef2bec1dee06a145e8ad 100644 (file)
@@ -3,19 +3,19 @@ source [find cpu/arm/arm7tdmi.tcl]
 source [find memory.tcl]
 source [find mmr_helpers.tcl]
 
-set CHIP_MAKER  freescale
-set CHIP_FAMILY mc1322x
-set CHIP_NAME  mc13224
-set N_RAM 1
-set RAM(0,BASE)  0x00400000
-set RAM(0,LEN)   0x18000
-set RAM(0,HUMAN) "internal SRAM"
+set CHIP_MAKER             freescale
+set CHIP_FAMILY            mc1322x
+set CHIP_NAME              mc13224
+set N_RAM                  1
+set RAM(0,BASE)            0x00400000
+set RAM(0,LEN)             0x18000
+set RAM(0,HUMAN)           "internal SRAM"
 set RAM(0,TYPE)            "ram"
 set RAM(0,RWX)             $RWX_RWX
 set RAM(0,ACCESS_WIDTH)    $ACCESS_WIDTH_ANY
 
 # I AM LAZY... I create 1 region for all MMRs.
-set N_MMREGS    1
+set N_MMREGS                  1
 set MMREGS(0,CHIPSELECT)      -1
 set MMREGS(0,BASE)            0x80000000
 set MMREGS(0,LEN)             0x00030000
index 7fe91fe99b96f2825dbee2f0e425faca19f3640d..29cd29f35c472b46b809a8ba1c8636e848e7a0cb 100644 (file)
@@ -3,18 +3,18 @@
 #
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME nuc910
+   set _CHIPNAME nuc910
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
   # set useful default
index 86b0a80db2eafa90e15705af2edf48b252a3ec8a..7968ad1e82d927919b8c4e99902893657e1f51ab 100644 (file)
@@ -3,22 +3,22 @@
 # as seen in Nokia N8x0 tablets
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME omap2420
+   set _CHIPNAME omap2420
 }
 
 # NOTE: likes slowish clock on reset (1.5 MBit/s or less) or use RCLK
 reset_config srst_nogate
 
-# Subsidiary TAP:  ARM7TDMIr4 plus imaging ... must add via ICEpick (addr 6).
+# Subsidiary TAP: ARM7TDMIr4 plus imaging ... must add via ICEpick (addr 6).
 jtag newtap $_CHIPNAME iva -irlen 4 -disable
 
 # Subsidiary TAP: C55x DSP ... must add via ICEpick (addr 2).
 jtag newtap $_CHIPNAME dsp -irlen 38 -disable
 
 # Subsidiary TAP: ARM ETB11, with scan chain for 4K of ETM trace buffer
-if { [info exists ETB_TAPID ] } {
+if { [info exists ETB_TAPID] } {
    set _ETB_TAPID $ETB_TAPID
 } else {
    set _ETB_TAPID 0x2b900f0f
@@ -26,7 +26,7 @@ if { [info exists ETB_TAPID ] } {
 jtag newtap $_CHIPNAME etb -irlen 4 -expected-id $_ETB_TAPID
 
 # Subsidiary TAP: ARM1136jf-s with scan chains for ARM Debug, EmbeddedICE-RT, ETM.
-if { [info exists CPU_TAPID ] } {
+if { [info exists CPU_TAPID] } {
    set _CPU_TAPID $CPU_TAPID
 } else {
    set _CPU_TAPID 0x07b3602f
@@ -34,18 +34,18 @@ if { [info exists CPU_TAPID ] } {
 jtag newtap $_CHIPNAME arm -irlen 5 -expected-id $_CPU_TAPID
 
 # Primary TAP: ICEpick-B (JTAG route controller) and boundary scan
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
    set _JRC_TAPID $JRC_TAPID
 } else {
    set _JRC_TAPID 0x01ce4801
 }
 jtag newtap $_CHIPNAME jrc -irlen 2 -expected-id $_JRC_TAPID
 
-# GDB target:  the ARM.
+# GDB target: the ARM.
 set _TARGETNAME $_CHIPNAME.arm
 target create $_TARGETNAME arm11 -chain-position $_TARGETNAME
 
-# scratch:  framebuffer, may be initially unavailable in some chips
+# scratch: framebuffer, may be initially unavailable in some chips
 $_TARGETNAME configure -work-area-phys 0x40210000
 $_TARGETNAME configure -work-area-size 0x00081000
 $_TARGETNAME configure -work-area-backup 0
index ba130a9cb7eb59a0d831ed1b7895e01a1f4972cd..018363a973a162d263b710ac6d29b3d72339e6ea 100644 (file)
@@ -1,11 +1,11 @@
 # TI OMAP3530
-#  http://focus.ti.com/docs/prod/folders/print/omap3530.html
+# http://focus.ti.com/docs/prod/folders/print/omap3530.html
 # Other OMAP3 chips remove DSP and/or the OpenGL support
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME omap3530
+   set _CHIPNAME omap3530
 }
 
 # ICEpick-C ... used to route Cortex, DSP, and more not shown here
@@ -15,7 +15,7 @@ source [find target/icepick.cfg]
 jtag newtap $_CHIPNAME dsp -irlen 38 -ircapture 0x25 -irmask 0x3f -disable
 
 # Subsidiary TAP: CoreSight Debug Access Port (DAP)
-if { [info exists DAP_TAPID ] } {
+if { [info exists DAP_TAPID] } {
    set _DAP_TAPID $DAP_TAPID
 } else {
    set _DAP_TAPID 0x0b6d602f
@@ -26,7 +26,7 @@ jtag configure $_CHIPNAME.dap -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 3"
 
 # Primary TAP: ICEpick-C (JTAG route controller) and boundary scan
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
    set _JRC_TAPID $JRC_TAPID
 } else {
    set _JRC_TAPID 0x0b7ae02f
@@ -34,7 +34,7 @@ if { [info exists JRC_TAPID ] } {
 jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f \
        -expected-id $_JRC_TAPID
 
-# GDB target:  Cortex-A8, using DAP
+# GDB target: Cortex-A8, using DAP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.dap
 
index fc3db5d0ccc69214fc95939b5f0c01d0d04df95d..f16d7488868e7e6a7305197d59f81f0b120abc36 100644 (file)
@@ -16,7 +16,7 @@ source [find target/icepick.cfg]
 #
 # A9 DAP
 #
-if { [info exists DAP_TAPID ] } {
+if { [info exists DAP_TAPID] } {
        set _DAP_TAPID $DAP_TAPID
 } else {
        set _DAP_TAPID 0x3BA00477
@@ -31,7 +31,7 @@ jtag configure $_CHIPNAME.dap -event tap-enable \
 #
 # M3 DAPs, one per core
 #
-if { [info exists M3_DAP_TAPID ] } {
+if { [info exists M3_DAP_TAPID] } {
        set _M3_DAP_TAPID $M3_DAP_TAPID
 } else {
        set _M3_DAP_TAPID 0x4BA00477
@@ -51,7 +51,7 @@ jtag configure $_CHIPNAME.m30_dap -event tap-enable \
 #
 # ICEpick-D JRC (JTAG route controller)
 #
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
        set _JRC_TAPID $JRC_TAPID
 } else {
        set _JRC_TAPID  0x3b95c02f
@@ -59,7 +59,7 @@ if { [info exists JRC_TAPID ] } {
 }
 
 # PandaBoard REV EA1 (PEAP platforms)
-if { [info exists JRC_TAPID2 ] } {
+if { [info exists JRC_TAPID2] } {
        set _JRC_TAPID2 $JRC_TAPID2
 } else {
        set _JRC_TAPID2 0x1b85202f
@@ -68,7 +68,7 @@ if { [info exists JRC_TAPID2 ] } {
 
 
 jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f \
-       -expected-id $_JRC_TAPID -expected-id $_JRC_TAPID2  
+       -expected-id $_JRC_TAPID -expected-id $_JRC_TAPID2
 
 # Required by ICEpick to power-up the debug domain
 jtag configure $_CHIPNAME.jrc -event post-reset "runtest 200"
index ed64f523edfd3cc5c209dc3abb6cbf4f7a73aba5..c4ff40e233f79d8299b624f59dfc815c77d9c7a7 100644 (file)
@@ -2,12 +2,12 @@
 # http://focus.ti.com/docs/prod/folders/print/omap5912.html
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME omap5912
+   set _CHIPNAME omap5912
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    # NOTE: validated with XOMAP5912 part
@@ -16,7 +16,7 @@ if { [info exists CPUTAPID ] } {
 
 adapter_nsrst_delay 100
 
-# NOTE:  presumes irlen 38 is the C55x DSP, matching BSDL for
+# NOTE: presumes irlen 38 is the C55x DSP, matching BSDL for
 # its standalone siblings (like TMS320VC5502) of the same era
 
 #jtag scan chain
index 6e06a1934ea7badccdcc4d2879886abe50b993de..d3e472c6d8c5519eaf7b0b66345c71d22804052c 100644 (file)
@@ -1,16 +1,16 @@
 #
-# Texas Instruments DaVinci family:  OMAPL138
+# Texas Instruments DaVinci family: OMAPL138
 #
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME omapl138
+   set _CHIPNAME omapl138
 }
 
 source [find target/icepick.cfg]
 
 # Subsidiary TAP: ARM ETB11, with scan chain for 4K of ETM trace buffer
-if { [info exists ETB_TAPID ] } {
+if { [info exists ETB_TAPID] } {
    set _ETB_TAPID $ETB_TAPID
 } else {
    set _ETB_TAPID 0x2b900f0f
@@ -20,7 +20,7 @@ jtag configure $_CHIPNAME.etb -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 3"
 
 # Subsidiary TAP: ARM926ejs with scan chains for ARM Debug, EmbeddedICE-RT, ETM.
-if { [info exists CPU_TAPID ] } {
+if { [info exists CPU_TAPID] } {
    set _CPU_TAPID $CPU_TAPID
 } else {
    set _CPU_TAPID 0x07926001
@@ -30,7 +30,7 @@ jtag configure $_CHIPNAME.arm -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 2"
 
 # Primary TAP: ICEpick-C (JTAG route controller) and boundary scan
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
    set _JRC_TAPID $JRC_TAPID
 } else {
    set _JRC_TAPID 0x0b7d102f
index 0b3522ee4c1219aa79aa99a091023ad121a4a0c7..5e64cb84dd654fbd0b73ab0be265bd7b8b4f0672 100644 (file)
@@ -1,17 +1,16 @@
-
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME pic32mx
+   set _CHIPNAME pic32mx
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x30938053
@@ -19,12 +18,11 @@ if { [info exists CPUTAPID ] } {
 
 # default working area is 16384
 if { [info exists WORKAREASIZE] } {
-   set  _WORKAREASIZE $WORKAREASIZE
+   set _WORKAREASIZE $WORKAREASIZE
 } else {
-   set  _WORKAREASIZE 0x4000
+   set _WORKAREASIZE 0x4000
 }
 
-
 adapter_nsrst_delay 100
 jtag_ntrst_delay 100
 
index 5b745f8599f752300bba9b1e19902e996ce26079..386242597cefd9b3a8ae3d59a455c67170458a62 100644 (file)
@@ -1,19 +1,19 @@
 # PXA255 chip ... originally from Intel, PXA line was sold to Marvell.
-#  This chip is now at end-of-life.  Final orders have been taken.
+# This chip is now at end-of-life.  Final orders have been taken.
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME pxa255
+   set _CHIPNAME pxa255
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x69264013
index f5d2c85fc9a30d156f520059c78a42c7deba2d04..62cb4f43edd23b78d4d95cce4b113ace9290100d 100644 (file)
@@ -1,33 +1,33 @@
 #Marvell/Intel PXA270 Script
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME pxa270
+   set _CHIPNAME pxa270
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 #IDs for pxa270. Are there more?
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
   # set useful default
    set _CPUTAPID 0x49265013
 }
 
-if { [info exists CPUTAPID2 ] } {
+if { [info exists CPUTAPID2] } {
    set _CPUTAPID2 $CPUTAPID2
 } else {
   # set useful default
    set _CPUTAPID2 0x79265013
 }
 
-if { [info exists CPUTAPID3 ] } {
+if { [info exists CPUTAPID3] } {
    set _CPUTAPID2 $CPUTAPID3
 } else {
   # set useful default
index 62c325b76f9b90a42d22683fd1ead8065f44bdbb..832152b97ccb21e4b3cfeaef6f02c4e597b20823 100644 (file)
@@ -1,59 +1,59 @@
 # Marvell PXA3xx
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME pxa3xx
+   set _CHIPNAME pxa3xx
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # IDs for all currently known PXA3xx chips
-if { [info exists CPUTAPID_PXA30X_A0 ] } {
+if { [info exists CPUTAPID_PXA30X_A0] } {
    set _CPUTAPID_PXA30X_A0 $CPUTAPID_PXA30X_A0
 } else {
    set _CPUTAPID_PXA30X_A0 0x0E648013
 }
-if { [info exists CPUTAPID_PXA30X_A1 ] } {
+if { [info exists CPUTAPID_PXA30X_A1] } {
    set _CPUTAPID_PXA30X_A1 $CPUTAPID_PXA30X_A1
 } else {
    set _CPUTAPID_PXA30X_A1 0x1E648013
 }
-if { [info exists CPUTAPID_PXA31X_A0 ] } {
+if { [info exists CPUTAPID_PXA31X_A0] } {
    set _CPUTAPID_PXA31X_A0 $CPUTAPID_PXA31X_A0
 } else {
    set _CPUTAPID_PXA31X_A0 0x0E649013
 }
-if { [info exists CPUTAPID_PXA31X_A1 ] } {
+if { [info exists CPUTAPID_PXA31X_A1] } {
    set _CPUTAPID_PXA31X_A1 $CPUTAPID_PXA31X_A1
 } else {
    set _CPUTAPID_PXA31X_A1 0x1E649013
 }
-if { [info exists CPUTAPID_PXA31X_A2 ] } {
+if { [info exists CPUTAPID_PXA31X_A2] } {
    set _CPUTAPID_PXA31X_A2 $CPUTAPID_PXA31X_A2
 } else {
    set _CPUTAPID_PXA31X_A2 0x2E649013
 }
-if { [info exists CPUTAPID_PXA31X_B0 ] } {
+if { [info exists CPUTAPID_PXA31X_B0] } {
    set _CPUTAPID_PXA31X_B0 $CPUTAPID_PXA31X_B0
 } else {
    set _CPUTAPID_PXA31X_B0 0x3E649013
 }
-if { [info exists CPUTAPID_PXA32X_B1 ] } {
+if { [info exists CPUTAPID_PXA32X_B1] } {
    set _CPUTAPID_PXA32X_B1 $CPUTAPID_PXA32X_B1
 } else {
    set _CPUTAPID_PXA32X_B1 0x5E642013
 }
-if { [info exists CPUTAPID_PXA32X_B2 ] } {
+if { [info exists CPUTAPID_PXA32X_B2] } {
    set _CPUTAPID_PXA32X_B2 $CPUTAPID_PXA32X_B2
 } else {
    set _CPUTAPID_PXA32X_B2 0x6E642013
 }
-if { [info exists CPUTAPID_PXA32X_C0 ] } {
+if { [info exists CPUTAPID_PXA32X_C0] } {
    set _CPUTAPID_PXA32X_C0 $CPUTAPID_PXA32X_C0
 } else {
    set _CPUTAPID_PXA32X_C0 0x7E642013
index 73d3b50039182dbf1c71323febb3b9e897d45e3e..ae7a1389027839f4bd2dd38b45c35e8b653e21b9 100644 (file)
@@ -1,23 +1,23 @@
 # Found on the 'TinCanTools' Hammer board.
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME s3c2410
+   set _CHIPNAME s3c2410
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
   # This config file was defaulting to big endian..
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 if { [info exists CPUTAPID] } {
-   set  _CPUTAPID $CPUTAPID
+   set _CPUTAPID $CPUTAPID
 } else {
    # Force an error until we get a good number.
-   set  _CPUTAPID 0xffffffff
+   set _CPUTAPID 0xffffffff
 }
 
 #use combined on interfaces or targets that cannot set TRST/SRST separately
index 9cd27d1e887e8aba06e3f94a47bc45c687505aaa..9d6633713cec936c27881e7d5ede895875680df6 100644 (file)
@@ -4,19 +4,19 @@
 # Info:   JTAG tap: s3c2440.cpu tap/device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME s3c2440
+   set _CHIPNAME s3c2440
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
   # this defaults to a bigendian
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x0032409d
index 164fe16993a6aaa46ebc624733cddb4b1672fba4..89a2ea8ad5bc54e9a45588cc4ea7abd14d4bead8 100644 (file)
 # adapter_khz 1
 
 if { [info exists CHIPNAME] } {
-  set  _CHIPNAME $CHIPNAME
+  set _CHIPNAME $CHIPNAME
 } else {
-  set  _CHIPNAME s3c2450
+  set _CHIPNAME s3c2450
 }
 
 if { [info exists ENDIAN] } {
-  set  _ENDIAN $ENDIAN
+  set _ENDIAN $ENDIAN
 } else {
  # this defaults to a bigendian
-  set  _ENDIAN little
+  set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
   set _CPUTAPID $CPUTAPID
 } else {
   set _CPUTAPID 0x07926f0f
index f1cbff746611f5a885db9df2cbbf62a59ed147ab..461d0478ac73ed8f4e6b04615fa2fda3e5efa8b8 100644 (file)
@@ -1,19 +1,18 @@
-
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME s3c4510
+   set _CHIPNAME s3c4510
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 
 # This appears to be a "Version 1" arm7tdmi.
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x1f0f0f0f
index eb95242850a4c72e2e1a8e237fd2cb47b09d2ad0..07fd425e51653c12a1d95ec4d0e8191a469f4bd1 100644 (file)
@@ -7,26 +7,26 @@
 # [and I do not believe it to be accurate, hence the 0xffffffff below]
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME s3c6410
+   set _CHIPNAME s3c6410
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
   # this defaults to a bigendian
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # trace buffer
-if { [info exists ETBTAPID ] } {
+if { [info exists ETBTAPID] } {
    set _ETBTAPID $ETBTAPID
 } else {
    set _ETBTAPID 0x2b900f0f
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07b76f0f
@@ -35,10 +35,10 @@ if { [info exists CPUTAPID ] } {
 #jtag scan chain
 
 jtag newtap $_CHIPNAME etb -irlen 4 -expected-id $_ETBTAPID
-jtag newtap $_CHIPNAME cpu     -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
+jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME arm11 -endian $_ENDIAN  -chain-position $_TARGETNAME -variant arm1176
+target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm1176
 
 adapter_nsrst_delay 500
 jtag_ntrst_delay 500
index ed9feeeaed48eccda5456a9bfae5ed2a27121b9c..6f2cf223451bdb0c093465f8826a790656a0136e 100644 (file)
@@ -1,18 +1,18 @@
 reset_config srst_only srst_pulls_trst
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME lh79532
+   set _CHIPNAME lh79532
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
   # sharp changed the number!
index dc9bf0bdc134b2578a9e998046fe6991ed6323b4..5207a4438da26d3281adba849157db7b2b20c7aa 100644 (file)
@@ -1,18 +1,18 @@
 # script for Sigma Designs SMP8634 (eventually even SMP8635)
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME smp8634
+   set _CHIPNAME smp8634
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x08630001
@@ -25,7 +25,7 @@ reset_config trst_and_srst separate
 
 # jtag scan chain
 # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
-jtag newtap $_CHIPNAME cpu -irlen 5  -ircapture 0x1 -irmask 0x1
+jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME mips_m4k -endian $_ENDIAN -variant
index ef289e30e1a61e584f320319b73e2a0f21ce436d..a86a3c4ebe0c5b657420fb839fae4a1cc53f37a6 100644 (file)
@@ -19,7 +19,7 @@ if { [info exists ENDIAN] } {
        set _ENDIAN little
 }
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
        set _CPUTAPID $CPUTAPID
 } else {
        set _CPUTAPID 0x07926041
index 3ab5c0b97d01c3d34965914c575972d5de3a51bb..a272e66f487a0dc34dcee789a5d3f1bb1a478a5e 100644 (file)
@@ -6,7 +6,7 @@
 
 global _DEVICECLASS
 
-if { [info exists DEVICECLASS ] } {
+if { [info exists DEVICECLASS] } {
    set _DEVICECLASS $DEVICECLASS
 } else {
    set _DEVICECLASS 0xff
@@ -20,9 +20,9 @@ source [find target/swj-dp.tcl]
 # are usable only for ISP style initial flash programming.
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME lm3s
+   set _CHIPNAME lm3s
 }
 
 # CPU TAP ID 0x1ba00477 for early Sandstorm parts
@@ -31,7 +31,7 @@ if { [info exists CHIPNAME] } {
 # CPU TAP ID 0x4ba00477 for Cortex-M3 r2p0 (on Tempest)
 # ... we'll ignore the JTAG version field, rather than list every
 # chip revision that turns up.
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x0ba00477
@@ -43,7 +43,7 @@ if { [info exists CPUTAPID ] } {
 swj_newdap $_CHIPNAME cpu -irlen 4 -irmask 0xf \
        -expected-id $_CPUTAPID -ignore-version
 
-if { [info exists WORKAREASIZE ] } {
+if { [info exists WORKAREASIZE] } {
    set _WORKAREASIZE $WORKAREASIZE
 } else {
    # default to 8K working area
@@ -55,7 +55,7 @@ target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu
 
 # 8K working area at base of ram, not backed up
 #
-# NOTE:  you may need or want to reconfigure the work area;
+# NOTE: you may need or want to reconfigure the work area;
 # some parts have just 6K, and you may want to use other
 # addresses (at end of mem not beginning) or back it up.
 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE
@@ -63,7 +63,7 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE
 # JTAG speed ... slow enough to work with a 12 MHz RC oscillator;
 # LM3S parts don't support RTCK
 #
-# NOTE:  this may be increased by a reset-init handler, after it
+# NOTE: this may be increased by a reset-init handler, after it
 # configures and enables the PLL.  Or you might need to decrease
 # this, if you're using a slower clock.
 adapter_khz 500
index 25a6059a0194666187192d3a88531ad77d1baf0d..2390f28947e99baab7d1328a7aaafbabb76db3af 100644 (file)
@@ -1,23 +1,23 @@
 # script for stm32
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME stm32
+   set _CHIPNAME stm32
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # Work-area is a space in RAM used for flash programming
 # By default use 16kB
 if { [info exists WORKAREASIZE] } {
-   set  _WORKAREASIZE $WORKAREASIZE
+   set _WORKAREASIZE $WORKAREASIZE
 } else {
-   set  _WORKAREASIZE 0x4000
+   set _WORKAREASIZE 0x4000
 }
 
 # JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz
@@ -27,7 +27,7 @@ adapter_nsrst_delay 100
 jtag_ntrst_delay 100
 
 #jtag scan chain
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
   # See STM Document RM0008
@@ -36,7 +36,7 @@ if { [info exists CPUTAPID ] } {
 }
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-if { [info exists BSTAPID ] } {
+if { [info exists BSTAPID] } {
    # FIXME this never gets used to override defaults...
    set _BSTAPID $BSTAPID
 } else {
index b8de38437ccf922da556428d949bc0d21d35805c..a47b115d22bf9227f9f73df7937060e934b07130 100644 (file)
@@ -1,23 +1,23 @@
 # script for stm32f2xxx
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME stm32f2xxx
+   set _CHIPNAME stm32f2xxx
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # Work-area is a space in RAM used for flash programming
 # By default use 64kB
 if { [info exists WORKAREASIZE] } {
-   set  _WORKAREASIZE $WORKAREASIZE
+   set _WORKAREASIZE $WORKAREASIZE
 } else {
-   set  _WORKAREASIZE 0x10000
+   set _WORKAREASIZE 0x10000
 }
 
 # JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz
@@ -32,7 +32,7 @@ jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
 #jtag scan chain
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
   # See STM Document RM0033
@@ -41,7 +41,7 @@ if { [info exists CPUTAPID ] } {
 }
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-if { [info exists BSTAPID ] } {
+if { [info exists BSTAPID] } {
    set _BSTAPID $BSTAPID
 } else {
   # See STM Document RM0033
index 5c3d3686f4ad6a7ac60160263ed6219dfd06b7bc..940a4e798561bc9dd81cf22227e84fa4b7e9d11d 100644 (file)
@@ -1,23 +1,23 @@
 # script for stm32l
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME stm32l
+   set _CHIPNAME stm32l
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # Work-area is a space in RAM used for flash programming
 # By default use 14kB
 if { [info exists WORKAREASIZE] } {
-   set  _WORKAREASIZE $WORKAREASIZE
+   set _WORKAREASIZE $WORKAREASIZE
 } else {
-   set  _WORKAREASIZE 0x3800
+   set _WORKAREASIZE 0x3800
 }
 
 # JTAG speed should be <= F_CPU/6.
@@ -28,7 +28,7 @@ adapter_nsrst_delay 100
 jtag_ntrst_delay 100
 
 #jtag scan chain
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
   # See STM Document RM0038
@@ -37,7 +37,7 @@ if { [info exists CPUTAPID ] } {
 }
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-if { [info exists BSTAPID ] } {
+if { [info exists BSTAPID] } {
    # FIXME this never gets used to override defaults...
    set _BSTAPID $BSTAPID
 } else {
index 0f61d4438dae228969c6613167e099668bc57a43..0c458c070d2e92d842bda11295c19b699bbca90b 100644 (file)
@@ -2,21 +2,21 @@
 adapter_khz 10
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME str710
+   set _CHIPNAME str710
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 if { [info exists CPUTAPID] } {
-   set  _CPUTAPID $CPUTAPID
+   set _CPUTAPID $CPUTAPID
 } else {
-   set  _CPUTAPID 0x3f0f0f0f
+   set _CPUTAPID 0x3f0f0f0f
 }
 
 #use combined on interfaces or targets that can't set TRST/SRST separately
index a1491ff158c2c738da3f3646cbfe050c3e192e55..cf125abca7489ede620ae294e61b2686bfcb4da2 100644 (file)
@@ -3,21 +3,21 @@
 adapter_khz 3000
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME str730
+   set _CHIPNAME str730
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 if { [info exists CPUTAPID] } {
-   set  _CPUTAPID $CPUTAPID
+   set _CPUTAPID $CPUTAPID
 } else {
-   set  _CPUTAPID 0x3f0f0f0f
+   set _CPUTAPID 0x3f0f0f0f
 }
 
 #use combined on interfaces or targets that can't set TRST/SRST separately
index 686aede06e80e31449134e655cc9dc0d07bd5d51..e9167279decb8aaf0d2fb8bdfc5c502e79f29bf7 100644 (file)
@@ -1,21 +1,21 @@
 #STR750 CPU
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME str750
+   set _CHIPNAME str750
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 if { [info exists CPUTAPID] } {
-   set  _CPUTAPID $CPUTAPID
+   set _CPUTAPID $CPUTAPID
 } else {
-   set  _CPUTAPID 0x4f1f0041
+   set _CPUTAPID 0x4f1f0041
 }
 
 # jtag speed
@@ -35,7 +35,7 @@ jtag_ntrst_delay 500
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
-$_TARGETNAME configure -event reset-start  { adapter_khz 10 }
+$_TARGETNAME configure -event reset-start { adapter_khz 10 }
 $_TARGETNAME configure -event reset-init {
        adapter_khz 3000
 
index 9b0a708308f4aa1ab18cf3a4a2c2aac33726aeb4..57bf8b66f4b4f80c86a44c5460db489b5a32bef9 100644 (file)
@@ -1,15 +1,15 @@
 # script for str9
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME str912
+   set _CHIPNAME str912
 }
 
 if { [info exists ENDIAN] } {
-   set  _ENDIAN $ENDIAN
+   set _ENDIAN $ENDIAN
 } else {
-   set  _ENDIAN little
+   set _ENDIAN little
 }
 
 # jtag speed. We need to stick to 16kHz until we've finished reset.
@@ -21,27 +21,27 @@ jtag_ntrst_delay 100
 #use combined on interfaces or targets that can't set TRST/SRST separately
 reset_config trst_and_srst
 
-if { [info exists FLASHTAPID ] } {
+if { [info exists FLASHTAPID] } {
    set _FLASHTAPID $FLASHTAPID
 } else {
    set _FLASHTAPID 0x04570041
 }
 jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x25966041
 }
-jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
 
-if { [info exists BSTAPID ] } {
+if { [info exists BSTAPID] } {
    set _BSTAPID $BSTAPID
 } else {
    set _BSTAPID 0x1457f041
 }
-jtag newtap $_CHIPNAME bs    -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID
+jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
index 2551c3ed4c361d815fcd7a2b478f7da2fa935ae2..2903e5d8f8405c088bbe71f2cf44ce6eee9f54bc 100644 (file)
@@ -1,10 +1,10 @@
 #
-# Texas Instruments DaVinci family:  TMS320DM355
+# Texas Instruments DaVinci family: TMS320DM355
 #
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME dm355
+   set _CHIPNAME dm355
 }
 
 # TI boards default to EMU0/EMU1 *high* -- ARM and ETB are *disabled*
@@ -18,12 +18,12 @@ set EMU01 "-disable"
 source [find target/icepick.cfg]
 
 #
-# Also note:  when running without RTCK before the PLLs are set up, you
+# Also note: when running without RTCK before the PLLs are set up, you
 # may need to slow the JTAG clock down quite a lot (under 2 MHz).
 #
 
 # Subsidiary TAP: ARM ETB11, with scan chain for 4K of ETM trace buffer
-if { [info exists ETB_TAPID ] } {
+if { [info exists ETB_TAPID] } {
    set _ETB_TAPID $ETB_TAPID
 } else {
    set _ETB_TAPID 0x2b900f0f
@@ -33,7 +33,7 @@ jtag configure $_CHIPNAME.etb -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 1"
 
 # Subsidiary TAP: ARM926ejs with scan chains for ARM Debug, EmbeddedICE-RT, ETM.
-if { [info exists CPU_TAPID ] } {
+if { [info exists CPU_TAPID] } {
    set _CPU_TAPID $CPU_TAPID
 } else {
    set _CPU_TAPID 0x07926001
@@ -43,7 +43,7 @@ jtag configure $_CHIPNAME.arm -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 0"
 
 # Primary TAP: ICEpick (JTAG route controller) and boundary scan
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
    set _JRC_TAPID $JRC_TAPID
 } else {
    set _JRC_TAPID 0x0b73b02f
@@ -81,7 +81,7 @@ dict set dm355 uart2          0x01e06000
 source [find target/davinci.cfg]
 
 ################
-# GDB target:  the ARM, using SRAM1 for scratch.  SRAM0 (also 16K)
+# GDB target: the ARM, using SRAM1 for scratch.  SRAM0 (also 16K)
 # and the ETB memory (4K) are other options, while trace is unused.
 set _TARGETNAME $_CHIPNAME.arm
 
index e2d29bd5aa463977a7516da4c2b0bc4bb3b934a8..a260278601155a8693f38baf4178b30e4e1747a5 100644 (file)
@@ -1,10 +1,10 @@
 #
-# Texas Instruments DaVinci family:  TMS320DM365
+# Texas Instruments DaVinci family: TMS320DM365
 #
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME dm365
+   set _CHIPNAME dm365
 }
 
 # TI boards default to EMU0/EMU1 *high* -- ARM and ETB are *disabled*
@@ -18,7 +18,7 @@ set EMU01 "-disable"
 source [find target/icepick.cfg]
 
 # Subsidiary TAP: ARM ETB11, with scan chain for 4K of ETM trace buffer
-if { [info exists ETB_TAPID ] } {
+if { [info exists ETB_TAPID] } {
    set _ETB_TAPID $ETB_TAPID
 } else {
    set _ETB_TAPID 0x2b900f0f
@@ -28,7 +28,7 @@ jtag configure $_CHIPNAME.etb -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 1"
 
 # Subsidiary TAP: ARM926ejs with scan chains for ARM Debug, EmbeddedICE-RT, ETM.
-if { [info exists CPU_TAPID ] } {
+if { [info exists CPU_TAPID] } {
    set _CPU_TAPID $CPU_TAPID
 } else {
    set _CPU_TAPID 0x0792602f
@@ -38,7 +38,7 @@ jtag configure $_CHIPNAME.arm -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 0"
 
 # Primary TAP: ICEpick (JTAG route controller) and boundary scan
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
    set _JRC_TAPID $JRC_TAPID
 } else {
    set _JRC_TAPID 0x0b83e02f
@@ -73,7 +73,7 @@ dict set dm365 ddr            0x80000000
 source [find target/davinci.cfg]
 
 ################
-# GDB target:  the ARM, using SRAM1 for scratch.  SRAM0 (also 16K)
+# GDB target: the ARM, using SRAM1 for scratch.  SRAM0 (also 16K)
 # and the ETB memory (4K) are other options, while trace is unused.
 set _TARGETNAME $_CHIPNAME.arm
 
index 4dac3d5fafa43de34e35d6b51e2e3b48d0be70f7..4f100843b18a32957a92f2b0b1d012d9c42008df 100644 (file)
@@ -1,10 +1,10 @@
 #
-# Texas Instruments DaVinci family:  TMS320DM6446
+# Texas Instruments DaVinci family: TMS320DM6446
 #
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME dm6446
+   set _CHIPNAME dm6446
 }
 
 # TI boards default to EMU0/EMU1 *high* -- ARM and ETB are *disabled*
@@ -28,7 +28,7 @@ jtag configure $_CHIPNAME.dsp -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 2"
 
 # Subsidiary TAP: ARM ETB11, with scan chain for 4K of ETM trace buffer
-if { [info exists ETB_TAPID ] } {
+if { [info exists ETB_TAPID] } {
    set _ETB_TAPID $ETB_TAPID
 } else {
    set _ETB_TAPID 0x2b900f0f
@@ -38,7 +38,7 @@ jtag configure $_CHIPNAME.etb -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 1"
 
 # Subsidiary TAP: ARM926ejs with scan chains for ARM Debug, EmbeddedICE-RT, ETM.
-if { [info exists CPU_TAPID ] } {
+if { [info exists CPU_TAPID] } {
    set _CPU_TAPID $CPU_TAPID
 } else {
    set _CPU_TAPID 0x07926001
@@ -48,7 +48,7 @@ jtag configure $_CHIPNAME.arm -event tap-enable \
        "icepick_c_tapenable $_CHIPNAME.jrc 0"
 
 # Primary TAP: ICEpick-C (JTAG route controller) and boundary scan
-if { [info exists JRC_TAPID ] } {
+if { [info exists JRC_TAPID] } {
    set _JRC_TAPID $JRC_TAPID
 } else {
    set _JRC_TAPID 0x0b70002f
@@ -59,7 +59,7 @@ jtag configure $_CHIPNAME.jrc -event setup \
        "jtag tapenable $_CHIPNAME.etb; jtag tapenable $_CHIPNAME.arm"
 
 ################
-# GDB target:  the ARM, using SRAM1 for scratch.  SRAM0 (also 8K)
+# GDB target: the ARM, using SRAM1 for scratch.  SRAM0 (also 8K)
 # and the ETB memory (4K) are other options, while trace is unused.
 # Little-endian; use the OpenOCD default.
 set _TARGETNAME $_CHIPNAME.arm
index dd5d177d5a8fa90034958b8a6d796b7a7e74c71a..3ba3591beb263fe17778b98a36fa20b632809742 100644 (file)
@@ -3,15 +3,15 @@
 ######################################
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME tmpa900
+   set _CHIPNAME tmpa900
 }
 
 # Toshiba TMPA900 series MCUs are always little endian as per datasheet.
 set _ENDIAN little
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07926031
index 271ca57d62234ff2e358cca85a35023dc15528c2..5d41c8c2ad7076c26809dd69fceba15bc3b3ead7 100644 (file)
@@ -3,15 +3,15 @@
 ######################################
 
 if { [info exists CHIPNAME] } {
-   set  _CHIPNAME $CHIPNAME
+   set _CHIPNAME $CHIPNAME
 } else {
-   set  _CHIPNAME tmpa910
+   set _CHIPNAME tmpa910
 }
 
 # Toshiba TMPA910 series MCUs are always little endian as per datasheet.
 set _ENDIAN little
 
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
    set _CPUTAPID 0x07926031
index 073e01fa480abeded9ef386c52df3137e51b1afa..e1368740ef5592c5a46f7b0ad3eac9b46fd52331 100644 (file)
@@ -15,7 +15,7 @@ proc mmu_on {} {
 }
 
 proc ocd_gdb_restart {target_id} {
-    global  _TARGETNAME_1
+    global _TARGETNAME_1
        global _SMP
     targets $_TARGETNAME_1
        if { [expr ($_SMP == 1)] } {
@@ -29,13 +29,13 @@ proc ocd_gdb_restart {target_id} {
 }
 
 proc smp_reg {} {
-       global  _TARGETNAME_1
-    global  _TARGETNAME_2
+       global _TARGETNAME_1
+    global _TARGETNAME_2
     targets $_TARGETNAME_1 
        echo "$_TARGETNAME_1"
        set pc1 [reg pc]
        set stck1 [reg sp_svc]
-       targets  $_TARGETNAME_2
+       targets $_TARGETNAME_2
        echo "$_TARGETNAME_1"
        set pc2 [reg pc]
        set stck2 [reg sp_svc]
@@ -79,13 +79,13 @@ proc poll_pwrsts { } {
        set result 1
        set i 0
        irscan $_CHIPNAME.jrc 0x3a
-       drscan $_CHIPNAME.jrc 4 0 
-       set pwrsts [drscan $_CHIPNAME.jrc 16 0]    
+       drscan $_CHIPNAME.jrc 4 0
+       set pwrsts [drscan $_CHIPNAME.jrc 16 0]
        set pwrsts [expr (0x$pwrsts & 0xc)]
        while {[string equal "4" $pwrsts] && $i<20} {
                irscan $_CHIPNAME.jrc 0x3a
-               drscan $_CHIPNAME.jrc 4 0; 
-               set pwrsts [drscan $_CHIPNAME.jrc 16 0]    
+               drscan $_CHIPNAME.jrc 4 0;
+               set pwrsts [drscan $_CHIPNAME.jrc 16 0]
                set pwrsts [expr (0x$pwrsts & 0xc)]
                if {![string equal "4" $pwrsts]} {
                        set result 1
@@ -100,7 +100,7 @@ proc poll_pwrsts { } {
 }
 
 proc halt_ { } {
-       if {[poll_pwrsts]==1} { 
+       if {[poll_pwrsts]==1} {
                halt
        } else {
                echo "halt failed : target in retention"
@@ -117,12 +117,12 @@ proc u8500_tapdisable {chip val} {
 
 
 proc enable_apetap {} {
-       global  _CHIPNAME
-       global _TARGETNAME_2 
+       global _CHIPNAME
+       global _TARGETNAME_2
     global _TARGETNAME_1
        poll off
        irscan $_CHIPNAME.jrc 0x3e
-       drscan $_CHIPNAME.jrc 8 0xcf 
+       drscan $_CHIPNAME.jrc 8 0xcf
        jtag tapenable $_CHIPNAME.dap
        irscan $_CHIPNAME.jrc 0x6
        drscan $_CHIPNAME.jrc 32 0
@@ -143,26 +143,26 @@ proc enable_apetap {} {
 tcl_port 5555
 telnet_port 4444
 gdb_port 3333
+
 if { [info exists CHIPNAME] } {        
-global _CHIPNAME 
-    set  _CHIPNAME $CHIPNAME    
+global _CHIPNAME
+    set _CHIPNAME $CHIPNAME
 } else {
-global _CHIPNAME 
-       set  _CHIPNAME u8500
+global _CHIPNAME
+       set _CHIPNAME u8500
 }
 
-if { [info exists ENDIAN] } {  
-       set  _ENDIAN $ENDIAN    
-} else {        
+if { [info exists ENDIAN] } {
+       set _ENDIAN $ENDIAN
+} else {
  # this defaults to a bigendian
-       set  _ENDIAN little
+       set _ENDIAN little
 }
 
 
 
 # Subsidiary TAP: APE with scan chains for ARM Debug, EmbeddedICE-RT,
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
    set _CPUTAPID $CPUTAPID
 } else {
        set _CPUTAPID 0x4ba00477
@@ -175,7 +175,7 @@ jtag configure $_CHIPNAME.dap -event tap-disable \
 
 
 #CLTAPC TAP JRC equivalent
-if { [info exists CLTAPC_ID ] } {
+if { [info exists CLTAPC_ID] } {
    set _CLTAPC_ID $CLTAPC_ID
 } else {
    set _CLTAPC_ID 0x22286041
@@ -183,20 +183,20 @@ if { [info exists CLTAPC_ID ] } {
 jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x6 -irmask 0xf -expected-id $_CLTAPC_ID -ignore-version
 
 
-if { ![info exists TARGETNAME_1 ] } {
-global  _TARGETNAME_1
+if { ![info exists TARGETNAME_1] } {
+global _TARGETNAME_1
 set _TARGETNAME_1 $_CHIPNAME.cpu1
 } else {
-global  _TARGETNAME_1
+global _TARGETNAME_1
 set _TARGETNAME_1 $TARGETNAME_1
 }
 
-if { [info exists  DAP_DBG1] } {
+if { [info exists DAP_DBG1] } {
        set _DAP_DBG1 $DAP_DBG1
 } else {
        set _DAP_DBG1 0x801A8000 
 }
-if { [info exists  DAP_DBG2] } {
+if { [info exists DAP_DBG2] } {
        set _DAP_DBG2 $DAP_DBG2
 } else {
        set _DAP_DBG2 0x801AA000 
@@ -209,11 +209,11 @@ $_TARGETNAME_1 configure -event gdb-attach {
 }
 
 
-if { ![info exists TARGETNAME_2 ] } {
-global  _TARGETNAME_2
+if { ![info exists TARGETNAME_2] } {
+global _TARGETNAME_2
 set _TARGETNAME_2 $_CHIPNAME.cpu2
 } else {
-global  _TARGETNAME_2
+global _TARGETNAME_2
 set _TARGETNAME_2 $TARGETNAME_2
 }