Rick Altherr <kc8apf@kc8apf.net> - update syntax
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 30 Oct 2008 08:04:11 +0000 (08:04 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 30 Oct 2008 08:04:11 +0000 (08:04 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1114 b42882b7-edfa-0310-969c-e2dbd0fdcd60

45 files changed:
src/target/target/aduc702x.cfg
src/target/target/at91eb40a.cfg
src/target/target/at91r40008.cfg
src/target/target/at91sam9260.cfg
src/target/target/at91sam9260minimal.cfg
src/target/target/eir-sam7se512.cfg
src/target/target/epc9301.cfg
src/target/target/hammer.cfg
src/target/target/imx31.cfg
src/target/target/ipx42x.cfg
src/target/target/lm3s3748.cfg
src/target/target/lm3s6965.cfg
src/target/target/lm3s811.cfg
src/target/target/lpc2129.cfg
src/target/target/lpc2148.cfg
src/target/target/lpc2294.cfg
src/target/target/netx500.cfg
src/target/target/nslu2.cfg
src/target/target/omap5912.cfg
src/target/target/pic32mx.cfg
src/target/target/pxa255.cfg
src/target/target/pxa255_sst.cfg
src/target/target/pxa270.cfg
src/target/target/s3c2440.cfg
src/target/target/sam7x256.cfg
src/target/target/stm32.cfg
src/target/target/stm32stick.cfg
src/target/target/str710.cfg
src/target/target/str730.cfg
src/target/target/str750.cfg
src/target/target/str912.cfg
src/target/target/str9comstick.cfg
src/target/target/test_reset_syntax_error.cfg
src/target/target/test_syntax_error.cfg
src/target/target/wi-9c.cfg
src/target/target/xba_revA3.cfg
src/target/target/zy1000.cfg
testing/examples/AT91R40008Test/prj/at91r40008_turtle.cfg
testing/examples/LPC2148Test/prj/lpc2148_jtagkey.cfg
testing/examples/LPC2294Test/prj/lpc2294_jtagkey.cfg
testing/examples/SAM7S256Test/prj/sam7s256_jtagkey.cfg
testing/examples/SAM7X256Test/prj/sam7x256_jtagkey.cfg
testing/examples/STR710JtagSpeed/prj/str710_jtagkey.cfg
testing/examples/STR710Test/prj/str710_jtagkey.cfg
testing/examples/STR912Test/prj/str912_jtagkey.cfg

index 5c297fbe028b65192e36e76e10c11402c2f16d1b..c9ef92cdc0f5cbdad62ae15dfb6e7d533fa3e687 100644 (file)
@@ -15,13 +15,13 @@ jtag_device 4 0x1 0xf 0xe
 ##
 ## Target configuration
 ##
-target arm7tdmi little 0
+target create target0 arm7tdmi -endian little -chain-position 0
 
 ## software initiated reset (if your SRST isn't wired)
 #proc target_0_reset {} { mwb 0x0ffff0230 04 }
 
 # use top 1k of SRAM for as temporary JTAG memory 
-#working_area 0 0x11C00 0x400 backup
+#[new_target_name] configure -work-area-virt 0 -work-area-phys 0x11C00 -work-area-size 0x400 -work-area-backup 1
 
 ## flash configuration
 flash bank aduc702x 0x80000 0x10000 2 2 0
index 60153be9615a65c71591265c1db3d9fbe2123d16..b2b91dbcaebf432b81e247e2339a0135ed7d2394 100644 (file)
@@ -14,7 +14,7 @@ reset_config srst_only srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-target arm7tdmi little 0 arm7tdmi-s_r4
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
 
 # speed up memory downloads
 arm7_9 fast_memory_access enable
@@ -25,8 +25,7 @@ flash bank ecosflash 0x01000000 0x200000 2 2 0 ecos/at91eb40a.elf
 
 # required for usable performance. Used for lots of
 # other things than flash programming.
-working_area 0 0x00030000 0x10000 nobackup
-
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00030000 -work-area-size 0x10000 -work-area-backup 0
 
 [new_target_name] configure -event reset-init {
        puts "Running reset init script for AT91EB40A"
index 7c4be18ebfe630eb2c5be34ced5ce51089559c0a..6ed695768cab8b93ac25e200bafc7fd49b3f39f3 100644 (file)
@@ -8,14 +8,13 @@ reset_config srst_only srst_pulls_trst
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
 
 [new_target_name] configure -event old-gdb_program_config { script event/at91r40008_reset.script }
 
-working_area 0 0x3C000 0x4000 nobackup 
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0
+
 flash bank cfi 0x10000000 0x400000 2 2 0
 
 # For more information about the configuration files, take a look at:
index a9ef6a0de56b73eeb5f74bb7188dddbab466addf..63d20fb734baf05b285360d9b5bd68fa6fee62c5 100644 (file)
@@ -14,15 +14,11 @@ jtag_ntrst_delay 0
 # Target configuration
 ######################
 
-#target <type> <endianess> <reset mode> <JTAG pos> <variant>
-target arm926ejs little 0 arm926ejs
+target create target0 arm926ejs -endian little -chain-position 0 -variant arm926ejs
 
 [new_target_name] configure -event reset-init { script event/at91sam9260_reset.script }
 
-
-#working area <target#> <address> <size> <backup|nobackup>
-working_area 0 0x00300000 0x1000 backup
-
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
 
 #####################
 # Flash configuration
index 70e887498ccda0bea72ff9dc8bbe97652123a2c9..ca6edd9bab22de0e37eee5ab7d28175c0d537112 100644 (file)
@@ -14,7 +14,6 @@ jtag_ntrst_delay 200
 # Target configuration
 ######################
 
-#target <type> <endianess> <reset mode> <JTAG pos> <variant>
-target arm926ejs little 0 arm926ejs
+target create target0 arm926ejs -endian little -chain-position 0 -variant arm926ejs
 
 
index a378a203bed06f80cf4bb2a5cb242b7d6d6f4534..dfc247552e61824e4222035fbb3a8154b1f5afaf 100644 (file)
@@ -5,12 +5,12 @@ reset_config srst_only srst_pulls_trst
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
 
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
 
 [new_target_name] configure -event reset-init { script event/eir-sam7se512_reset.script }
 
-working_area 0 0x00200000 0x4000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank at91sam7 0 0 0 0 0
index f1e479d94485907e03f27afa405c69b644258be1..31ff3320b17ed3fd546d1e8ee7e91e31a2783366 100644 (file)
@@ -3,8 +3,8 @@ jtag_device 4 0x1 0xf 0xe
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
-target arm920t little 0
-working_area 0 0x80014000 0x1000 backup
+target create target0 arm920t -endian little -chain-position 0 -work-area-virt 0 -work-area-phys 0x80014000 -work-area-size 0x1000 -work-area-backup 1
+
 #flash configuration
 #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
 flash bank cfi 0x60000000 0x1000000 2 2 0
index 627266d2282815c6ec1d7dd7523b30dccf716aed..b267861f42894cc1a90c6d22577ba024db65ee79 100644 (file)
@@ -9,17 +9,14 @@ reset_config trst_and_srst
 jtag_device 4 0x1 0xf 0xe
 
 
-target arm920t little 0 arm920t
+target create target0 arm920t -endian little -chain-position 0 -variant arm920t
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40800000 -work-area-size 0x20000 -work-area-backup 0
 [new_target_name] configure -event reset-init { script event/hammer_reset.script }
 
 # speed up memory downloads
 arm7 fast_memory_access enable
 arm7_9 dcc_downloads enable
 
-
-working_area 0 0x30800000 0x20000 nobackup
-
-
 #flash configuration
 #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
 flash bank cfi 0x00000000 0x1000000 2 2 0
index cf18f3e00eee6c3d7494b795085e388f19548736..34b35d8ba62ab35da05e9beb2e0fa8198839e7ac 100644 (file)
@@ -15,5 +15,5 @@ jtag_device 5 0x1 0x0 0x1e
 jtag_nsrst_delay 500
 jtag_ntrst_delay 500
 
-target arm11 little 1
+target create target0 arm11 -endian little -chain-position 1
  
index 9445992ccc4df580d9c67b60e6c13c9841fc7ca3..f2185f8065a23d5b409389f5306978f3835e6d5b 100644 (file)
@@ -5,5 +5,5 @@ reset_config srst_only srst_pulls_trst
 #jtag scan chain
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 7 0x1 0x7f 0x7e
-target xscale big 0 IXP42x
+target create target0 xscale -endian big -chain-position 0 -variant IXP42x
 
index ff3d71582ddf723fdb47be89d2559476cab399e9..bb35181c5cc6476f575246e9bc0996a3b5c03ea6 100644 (file)
@@ -19,10 +19,10 @@ jtag_device 4 0x1 0xf 0xe
 # the luminary variant causes a software reset rather than asserting SRST
 # this stops the debug registers from being cleared
 # this will be fixed in later revisions of silicon
-target cortex_m3 little 0 lm3s
+target create target0 cortex_m3 -endian little -chain-position 0 -variant lm3s
 
 # 8k working area at base of ram
-working_area 0 0x20000000 0x2000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
 
 #flash configuration
 flash bank stellaris 0 0 0 0 0
index b9e8ce208f97614859862162a2b0417e813bcdd5..e1d38227a211d7450b1523fc80a038fdf7ea1a76 100644 (file)
@@ -16,10 +16,10 @@ jtag_device 4 0x1 0xf 0xe
 # the luminary variant causes a software reset rather than asserting SRST
 # this stops the debug registers from being cleared
 # this will be fixed in later revisions of silicon
-target cortex_m3 little 0 lm3s
+target create target0 cortex_m3 -endian little -chain-position 0 -variant lm3s
 
 # 4k working area at base of ram
-working_area 0 0x20000000 0x4000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash configuration
 flash bank stellaris 0 0 0 0 0
index 2cfd4e17e04bb0b2f4c2cd8c6298ce4d8f01db2f..90543334ce1ffd292af92f4cc717f4a9d404306b 100644 (file)
@@ -16,10 +16,10 @@ jtag_device 4 0x1 0xf 0xe
 # the luminary variant causes a software reset rather than asserting SRST
 # this stops the debug registers from being cleared
 # this will be fixed in later revisions of silicon
-target cortex_m3 little 0 lm3s
+target create target0 cortex_m3 -endian little -chain-position 0 -variant lm3s
 
 # 8k working area at base of ram
-working_area 0 0x20000000 0x2000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
 
 #flash configuration
 flash bank stellaris 0 0 0 0 0
index b9a33089d72833356faedabbe65166288cef2763..d94f8228da5194240e5b12a6f9371c804f941c4f 100644 (file)
@@ -4,8 +4,9 @@ reset_config trst_and_srst srst_pulls_trst
 #jtag scan chain
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
-target arm7tdmi little 0 arm7tdmi-s_r4
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
+
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
-working_area 0 0x40000000 0x4000 nobackup
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum
index 67b3d11c7ebcecec6175074228cc6f262ba17a08..24ec05edc343acfe551efc010dd4ab32d336233f 100644 (file)
@@ -13,7 +13,7 @@ reset_config trst_and_srst srst_pulls_trst
 #jtag scan chain
 jtag_device 4 0x1 0xf 0xe
 
-target arm7tdmi little 0 arm7tdmi-s_r4
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
 [new_target_name] configure -event reset-init {
        # Force target into ARM state
        soft_reset_halt
@@ -22,7 +22,7 @@ target arm7tdmi little 0 arm7tdmi-s_r4
        
 }
 
-working_area 0 0x40000000 0x4000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
 flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 14765
index df1a3e2fa2890eb87345e348a79cd479a3755b5a..bd282eba43c9bbda9e6b4c3054eba848cd54a217 100644 (file)
@@ -5,12 +5,8 @@ reset_config trst_and_srst srst_pulls_trst
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi-s_r4
-
-
-working_area 0 0x40000000 0x4000 nobackup
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash configuration
 #flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
index 21a0e10c4244b9747986ac28c02bf18e77eeb43d..e7b5e51ac18dc7de39df683431656d2a660b207b 100644 (file)
@@ -6,5 +6,5 @@ reset_config trst_and_srst
 jtag_device 4 0x1 0xf 0xe
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
-target arm926ejs little 0 arm926ejs
+target create target0 arm926ejs -endian little -chain-position 0 -variant arm926ejs
 
index 53907bc5e0c1228377650d9073cfd96cb9955b95..c545e01f3b23b631c299972581d6887160ac70b8 100644 (file)
@@ -6,12 +6,12 @@ reset_config srst_only
 jtag_device 7 0x1 0x7f 0x7e
 
 # target configuration
-target xscale big 0 ixp42x
+target create target0 xscale -endian big -chain-position 0 -variant ixp42x
 
 
 # maps to PXA internal RAM.  If you are using a PXA255
 # you must initialize SDRAM or leave this option off
-working_area 0 0x00020000 0x10000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x10000 -work-area-backup 0
 
 # flash bank <driver> <base> <size> <chip_width> <bus_width>
 #flash bank cfi 0x50000000 0x1000000 2 4 0 
index fdc8e71f05fdaa22bc3764f440c5455686ab3ca9..c1e34eaa57dc8770cb768b71e716b4f2a8714eef 100644 (file)
@@ -10,11 +10,11 @@ jtag_device 38 0x0 0x0 0x0
 jtag_device 4  0x1 0x0 0xe
 jtag_device 8  0x0 0x0 0x0
 
-target arm926ejs little 1 arm926ejs
+target create target0 arm926ejs -endian little -chain-position 1 -variant arm926ejs
 [new_target_name] configure -event reset-init { script event/omap5912_reset.script }
 
 # omap5912 lcd frame buffer as working area
-working_area 0 0x20000000 0x3e800 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x3e800 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank cfi 0x00000000 0x1000000 2 2 0
index 6b6e8b30bdc4a3f8c68e5674b265378623fc1aa9..1d23ff2a520eb7f4f67ed59eb96eb6be67a4c457 100644 (file)
@@ -8,12 +8,8 @@ reset_config srst_only
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 5 0x1 0x1 0x1e
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target mips_m4k little 0
-
-
-working_area 0 0xa0000000 16384 nobackup
+target create target0 mips_m4k -endian little -chain-position 0
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0xa0000000 -work-area-size 16384 -work-area-backup 0
 
 #flash bank str7x <base> <size> 0 0 <target#> <variant>
 #flash bank stm32x 0 0 0 0 0
index 6a5c12bb5de45364200794245587a990f23f2963..c5a27be0deb5f6f08cff81da48c1d15cfe844bc1 100644 (file)
@@ -2,7 +2,7 @@ jtag_device 5 0x1 0x1f 0x1e
 jtag_nsrst_delay 200
 jtag_ntrst_delay 200
 
-target xscale little 0 pxa255
+target create target0 xscale -endian little -chain-position 0 -variant pxa255
 [new_target_name] configure -event reset-init { script event/pxa255_reset.script }
 
 reset_config trst_and_srst
index b9273692981fb2f2f094f0b74da260b1762cc4bb..49ebd2b3823bf39f7221dfa93a863934f386e11d 100644 (file)
@@ -10,4 +10,5 @@
 script target/pxa255.cfg
 # flash bank <driver> <base> <size> <chip_width> <bus_width> <targetNum> [options]
 flash bank cfi 0x00000000 0x80000 2 2 0 jedec_probe
-working_area 0 0x4000000 0x4000 nobackup 0
+
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x4000000 -work-area-size 0x4000 -work-area-backup 0
index 5818dc2d1cf2c922a2875239954085c937f54549..dcf5fa2b187b9b47b0acd098cd7fa70db619aa3e 100644 (file)
@@ -10,10 +10,10 @@ reset_config trst_and_srst separate
 #jtag scan chain
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 7 0x1 0x7f 0x7e
-target xscale little 0 pxa27x
+target create target0 xscale -endian little -chain-position 0 -variant pxa27x
 # maps to PXA internal RAM. If you are using a PXA255
 # you must initialize SDRAM or leave this option off
-working_area 0 0x5c000000 0x10000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 # works for P30 flash
index 6e00a1ee483665bef8a03d0c7b048461383b9cb0..6227107b0669254d7ab023a11ad10e70581a97a0 100644 (file)
@@ -7,10 +7,9 @@
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
 
-#target <type> <startup mode>
-target arm920t little 0 arm920t
+target create target0 arm920t -endian little -chain-position 0 -variant arm920t
 
 #reset configuration
 reset_config trst_and_srst
 
-working_area 0 0x200000 0x4000 backup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
index e0030c7a76701ab83df533c1f0496d487666d54c..026d402299ec8b6e901643845498a355bd417bea 100644 (file)
@@ -5,12 +5,10 @@ reset_config srst_only srst_pulls_trst
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 [new_target_name] configure -event reset-init { script event/sam7x256_reset.script }
 
-working_area 0 0x00200000 0x4000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank at91sam7 0 0 0 0 0
index fedafd1484fd2ca9bb83d430999c816b16ecd1b1..1c80679e7651ba5490f03f3c8cdac4a20528215d 100644 (file)
@@ -14,12 +14,9 @@ reset_config trst_and_srst
 jtag_device 4 0x1 0xf 0xe
 jtag_device 5 0x1 0x1 0x1e
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target cortex_m3 little 0
+target create target0 cortex_m3 -endian little -chain-position 0
 
-
-working_area 0 0x20000000 16384 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
 
 #flash bank str7x <base> <size> 0 0 <target#> <variant>
 flash bank stm32x 0 0 0 0 0
index f3e4006d4c715b45697a1bc25f9872a1edbb3390..00964ab59199bc420c677f31281c3fc615606db7 100644 (file)
@@ -15,12 +15,9 @@ jtag_device 4 0x1 0xf 0xe
 jtag_device 5 0x1 0x1 0x1e
 jtag_device 4 0x1 0xf 0xe
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target cortex_m3 little 0
+target create target0 cortex_m3 -endian little -chain-position 0
 
-
-working_area 0 0x20000000 16384 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
 
 #flash bank str7x <base> <size> 0 0 <target#> <variant>
 flash bank stm32x 0 0 0 0 0
index ea57e9f76c3c34f88f44a648b738fc6c6f60a99f..3273efdd31df7faea6bebe5f36024ba2b4d2dc44 100644 (file)
@@ -9,15 +9,11 @@ reset_config trst_and_srst srst_pulls_trst
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 [new_target_name] configure -event reset-start { jtag_khz 10 }
 [new_target_name] configure -event reset-init { jtag_khz 6000 }
 [new_target_name] configure -event old-gdb_program_config { script event/str710_program.script }
-
-
-working_area 0 0x2000C000 0x4000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x2000C000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank str7x <base> <size> 0 0 <target#> <variant>
 flash bank str7x 0x40000000 0x00040000 0 0 0 STR71x
index 2851befb449debe9fc19cf4a11693b31dc86700a..b36387aa74df2ade9f0393feafb4e549cdd24427 100644 (file)
@@ -16,12 +16,11 @@ jtag_device 4 0x1 0xf 0xe
 jtag_nsrst_delay 500
 jtag_ntrst_delay 500
 
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 [new_target_name] configure -event reset-start { jtag_khz 10 }
 [new_target_name] configure -event reset-init { jtag_khz 3000 }
 [new_target_name] configure -event old-gdb_program_config { script event/str730_program.script }
-
-working_area 0 0x40000000 0x4000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank str7x 0x20000000 0x00040000 0 0 0 STR3x
index d5fa45e8e2755057a6322ce7e173183f9bae85ed..6c69bb393b5f44aa0b651501b63e19750ff537bc 100644 (file)
@@ -16,15 +16,12 @@ jtag_device 4 0x1 0xf 0xe
 jtag_nsrst_delay 500
 jtag_ntrst_delay 500
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
 [new_target_name] configure -event reset-start  { jtag_khz 10 }
 [new_target_name] configure -event reset-init { jtag_khz 3000 }
 [new_target_name] configure -event old-gdb_program_config { script event/str750_program.script }
-
-working_area 0 0x40000000 0x4000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank str7x 0x20000000 0x00040000 0 0 0 STR75x
index cd0ec11c62b330b5b41a8610fc87c9a52648103c..6f605b06f6f4887e8a00778c2c6cdeb53ee39231 100644 (file)
@@ -17,9 +17,7 @@ jtag_device 8 0x1 0x1 0xfe
 jtag_device 4 0x1 0xf 0xe
 jtag_device 5 0x1 0x1 0x1e
 
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm966e little 1 arm966e
+target create target0 arm966e -endian little -chain-position 1 -variant arm966e
 
 [new_target_name] configure -event reset-start { jtag_rclk 16 }
 
@@ -35,9 +33,7 @@ target arm966e little 1 arm966e
        flash protect 0 0 7 off
 }
 
-
-
-working_area 0 0x50000000 16384 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 0
 
 #flash bank str9x <base> <size> 0 0 <target#> <variant>
 flash bank str9x 0x00000000 0x00080000 0 0 0
index f9dbe01c5c1af18e5d135fed23d01f8e521daa64..b9b5fc7596a013fd12a1126f49c6ed5ef3e2ff6e 100644 (file)
@@ -12,8 +12,8 @@ reset_config trst_and_srst
 jtag_device 8 0x1 0x1 0xfe
 jtag_device 4 0x1 0xf 0xe
 jtag_device 5 0x1 0x1 0x1e
-target arm966e little 1 arm966e
+target create target0 arm966e -endian little -chain-position 1 -variant arm966e
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 0
 
-working_area 0 0x50000000 16384 nobackup
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank str9x 0x00000000 0x00080000 0 0 0
index 1f6b0e92db2ca029606904b814673dbc6b554a4b..b720ca9dc4a66c5205fadeb7dde4da11a425ffd0 100644 (file)
@@ -7,7 +7,7 @@
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-target arm7tdmi little 0 arm7tdmi-s_r4
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
 
 [new_target_name] configure -event reset-init { 
 
index 63713d1cff0e789c506a5a43ff69c14ee6e37146..8727aa36fab6052a5fa69bb1e99502390518be35 100644 (file)
@@ -1,4 +1,4 @@
 # This script tests a syntax error in the startup 
 # config script
 
-syntax error here
\ No newline at end of file
+syntax error here
index 71acf0fcd8615ee4a7310b7c5c508019f1e7a823..7277108e8735e250232438f6313e4013a390eb3f 100644 (file)
@@ -14,15 +14,9 @@ jtag_ntrst_delay 0
 # Target configuration
 ######################
 
-#target <type> <endianess> <reset mode> <JTAG pos> <variant>
-target arm926ejs big 0 arm926ejs
-
+target create target0 arm926ejs -endian big -chain-position 0 -variant arm926ejs
 [new_target_name] configure -event reset-init { script event/wi-9c_reset.script }
-
-
-#working area <target#> <address> <size> <backup|nobackup>
-working_area 0 0x00000000 0x1000 backup
-
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00000000 -work-area-size 0x1000 -work-area-backup 1
 
 #####################
 # Flash configuration
index 4c750b5baaa536df2c38327d376e35792747ee7a..2fd44a92df1e0055804f4d83b739573bc47de717 100644 (file)
@@ -9,12 +9,12 @@ jtag_ntrst_delay 100
 #format L IRC IRCM IDCODE (Length, IR Capture, IR capture Mask, IDCODE)
 jtag_device 7 0x1 0x7f 0x7e
 
-target  xscale big           0          ixp42x
+target create target0 xscale -endian big -chain-position 0 -variant ixp42x
 [new_target_name] configure -event reset-init { script event/xba_revA3.script }
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20010000 -work-area-size 0x8060 -work-area-backup 0
 
 
 flash bank cfi 0x50000000 0x400000 2 2 0
-working_area 0 0x20010000 0x8060 nobackup
 
 init 
 reset init
index b47607f1b549a4646198cfc809c6fad361fd6c27..2fb2db323f1c9ab19280944b77f806d92fce005f 100644 (file)
@@ -13,8 +13,7 @@ reset_config srst_only srst_pulls_trst
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
 jtag_device 4 0x1 0xf 0xe
 
-#target configuration
-target arm7tdmi little 0 arm7tdmi-s_r4
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
 
 # at CPU CLK <32kHz this must be disabled
 arm7_9 fast_memory_access enable
@@ -45,7 +44,7 @@ flash bank ecosflash 0x01000000 0x200000 2 2 0 ecos/at91eb40a.elf
 
 # required for usable performance. Used for lots of
 # other things than flash programming.
-working_area 0 0x00020000 0x20000 nobackup
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0
 
 jtag_khz 16000
 
@@ -89,4 +88,4 @@ proc production_test {} {
        sleep 25000
        target_request debugmsgs disable
        return "See IP address above..."
-}
\ No newline at end of file
+}
index 1f101a88e1bf2f61b7ed899d7e89e9a4fe7d43d0..95f791839fbd25faf12a9435f7a09a0ddf27f097 100644 (file)
@@ -24,16 +24,15 @@ reset_config srst_only srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup false
 
 target_script 0 reset .\prj\at91r40008_reset.script
 
-working_area 0 0x3C000 0x4000 nobackup 
 flash bank cfi 0x10000000 0x400000 2 2 0
 
 # For more information about the configuration files, take a look at:
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
+
+init
+reset halt
index c24a2517caa0dac930a632d08abea230932ea55c..8d9492b33530e273515b33545118eb1af874c866 100644 (file)
@@ -22,16 +22,14 @@ reset_config trst_and_srst srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi-s_r4
-
-working_area 0 0x40000000 0x4000 nobackup
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup false
 
 #flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
 flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 14765 calc_checksum
 
 # For more information about the configuration files, take a look at:
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
+
+init
+reset halt
index d2dfd45f9bf55d60ce9788335cf6eee39a76236d..526cce1e2013720931e68008ceeb5eb8595abae7 100644 (file)
@@ -22,13 +22,8 @@ reset_config trst_and_srst srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi-s_r4
-
-working_area 0 0x40000000 0x4000 nobackup
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi-s_r4
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup false
 
 #flash configuration
 #flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
@@ -36,3 +31,6 @@ flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum
 
 # For more information about the configuration files, take a look at:
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
+
+init
+reset halt
index 634b5026ce9bf7357ce79744d3d52ac2b9c60c56..e08b84b5f810089c1a5ec51fbbf57ba6ecd4729b 100644 (file)
@@ -25,18 +25,16 @@ reset_config srst_only srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup false
 
 target_script 0 reset .\prj\sam7s256_reset.script
 
-working_area 0 0x00200000 0x4000 nobackup
-
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank at91sam7 0 0 0 0 0
 
 # For more information about the configuration files, take a look at:
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
+
+init
+reset halt
index 978512d4b023244f6b8a53381277e44a7257419b..425505f7085e897f971dbf1ea4ddb9175421bcf9 100644 (file)
@@ -25,18 +25,16 @@ reset_config srst_only srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe\r
 \r
 #target configuration\r
-daemon_startup reset\r
-\r
-#target <type> <startup mode>\r
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>\r
-target arm7tdmi little 0 arm7tdmi\r
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi\r
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup false\r
 \r
 target_script 0 reset .\prj\sam7x256_reset.script\r
 \r
-working_area 0 0x00200000 0x4000 nobackup\r
-\r
 #flash bank <driver> <base> <size> <chip_width> <bus_width>\r
 flash bank at91sam7 0 0 0 0 0\r
 \r
 # For more information about the configuration files, take a look at:\r
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger\r
+\r
+init\r
+reset halt\r
index 79ce94b1042f77bf8220c4f99dbdf45badfb2a46..2bef16317a1d1107ca48c46c60d203502d8e43bf 100644 (file)
@@ -22,16 +22,14 @@ reset_config trst_and_srst srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
-
-working_area 0 0x2000C000 0x4000 nobackup
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x2000C000 -work-area-size 0x4000 -work-area-backup false
 
 #flash bank str7x <base> <size> 0 0 <target#> <variant>
 flash bank str7x 0x40000000 0x00040000 0 0 0 STR71x
 
 # For more information about the configuration files, take a look at:
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
+
+init
+reset halt
index ed98ca19b0ebfa939d3348ea05f14ff98200000e..da4c243897b6ceaf9a22861350b15838a321986c 100644 (file)
@@ -22,18 +22,16 @@ reset_config trst_and_srst srst_pulls_trst
 jtag_device 4 0x1 0xf 0xe
 
 #target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little 0 arm7tdmi
+target create target0 arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x2000C000 -work-area-size 0x4000 -work-area-backup false
 
 target_script 0 gdb_program_config .\prj\str710_program.script
 
-working_area 0 0x2000C000 0x4000 nobackup
-
 #flash bank str7x <base> <size> 0 0 <target#> <variant>
 flash bank str7x 0x40000000 0x00040000 0 0 0 STR71x
 
 # For more information about the configuration files, take a look at:
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
+
+init
+reset halt
index 57488033309b652efc9c612f0331e638167dfbb7..487ec04caef52e2536cd4f52801b82b739feacfb 100644 (file)
@@ -27,18 +27,16 @@ jtag_device 4 0x1 0xf 0xe
 jtag_device 5 0x1 0x1 0x1e
 
 #target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm966e little 1 arm966e
+target create target0 arm966e -endian little -chain-position 1 -variant arm966e
+[new_target_name] configure -work-area-virt 0 -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup false
 
 target_script 0 gdb_program_config .\prj\str912_program.script
 
-working_area 0 0x50000000 16384 nobackup
-
 #flash bank str7x <base> <size> 0 0 <target#> <variant>
 flash bank str9x 0x00000000 0x00080000 0 0 0
 
 # For more information about the configuration files, take a look at:
 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
+
+init
+reset halt