target.cfg: remove "-work-area-virt 0"
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 8 Nov 2009 16:52:40 +0000 (08:52 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 8 Nov 2009 16:52:40 +0000 (08:52 -0800)
The semantics of "-work-area-virt 0" (or phys) changed with
the patch to require specifying physical or virtrual work
area addresses.  Specifying zero was previously a NOP.  Now
it means that address zero is valid.

This patch addresses three related issues:

 - MMU-less processors should never specify work-area-virt;
   remove those specifications.  Such processors include
   ARM7TDMI, Cortex-M3, and ARM966.

 - MMU-equipped processors *can* specify work-area-virt...
   but zero won't be appropriate, except in mischievous
   contexts (which hide null pointer exceptions).

   Remove those specs from those processors too.  If any of
   those mappings is valid, someone will need to submit a
   patch adding it ... along with a comment saying what OS
   provides the mapping, and in which context.  Example,
   say "works with Linux 2.6.30+, in kernel mode".  (Note
   that ARM Linux doesn't map kernel memory to zero ...)

 - Clarify docs on that "-virt" and other work area stuff.

Seems to me work-area-virt is quite problematic; not every
operating system provides such static mappings; if they do,
they're not in every MMU context...

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
45 files changed:
doc/openocd.texi
tcl/board/at91sam9g20-ek.cfg
tcl/board/digi_connectcore_wi-9c.cfg
tcl/board/hitex_str9-comstick.cfg
tcl/board/linksys_nslu2.cfg
tcl/board/mini2440.cfg
tcl/board/pxa255_sst.cfg
tcl/board/str910-eval.cfg
tcl/board/zy1000.cfg
tcl/target/at91eb40a.cfg
tcl/target/at91r40008.cfg
tcl/target/at91rm9200.cfg
tcl/target/at91sam3uXX.cfg
tcl/target/at91sam7sx.cfg
tcl/target/at91sam9260.cfg
tcl/target/at91sam9260_ext_RAM_ext_flash.cfg
tcl/target/cs351x.cfg
tcl/target/epc9301.cfg
tcl/target/imx27.cfg
tcl/target/is5114.cfg
tcl/target/lpc1768.cfg
tcl/target/lpc2103.cfg
tcl/target/lpc2124.cfg
tcl/target/lpc2129.cfg
tcl/target/lpc2148.cfg
tcl/target/lpc2294.cfg
tcl/target/lpc2378.cfg
tcl/target/lpc2478.cfg
tcl/target/mega128.cfg
tcl/target/omap5912.cfg
tcl/target/pic32mx.cfg
tcl/target/pxa270.cfg
tcl/target/sam7se512.cfg
tcl/target/sam7x256.cfg
tcl/target/samsung_s3c2410.cfg
tcl/target/samsung_s3c2440.cfg
tcl/target/stm32.cfg
tcl/target/str710.cfg
tcl/target/str730.cfg
tcl/target/str750.cfg
tcl/target/str912.cfg
tcl/target/tmpa900.cfg
tcl/target/tmpa910.cfg
tcl/target/xba_revA3.cfg
tcl/test/syntax1.cfg

index 2ddcd0417b61836a6fc8b9f79468956ecb6cbef5..e84f4c8b5d4b4f1becad0376dc93ed5bb93ecd33 100644 (file)
@@ -3185,13 +3185,18 @@ since performing a backup slows down operations.
 For example, the beginning of an SRAM block is likely to
 be used by most build systems, but the end is often unused.
 
-@item @code{-work-area-size} @var{size} -- specify/set the work area
+@item @code{-work-area-size} @var{size} -- specify work are size,
+in bytes.  The same size applies regardless of whether its physical
+or virtual address is being used.
 
 @item @code{-work-area-phys} @var{address} -- set the work area
 base @var{address} to be used when no MMU is active.
 
 @item @code{-work-area-virt} @var{address} -- set the work area
 base @var{address} to be used when an MMU is active.
+@emph{Do not specify a value for this except on targets with an MMU.}
+The value should normally correspond to a static mapping for the
+@code{-work-area-phys} address, set up by the current operating system.
 
 @end itemize
 @end deffn
index 00ab7fafaa0bd0b615d483123a9795a6cb59bd53..6e8a193469d918b12ccacfaeb6ab80aeeb374186 100644 (file)
@@ -41,8 +41,8 @@ target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNA
 # AT91SAM9G20 has two SRAM areas, one starting at 0x00200000 and the other starting at 0x00300000.
 # Both areas are 16 kB long.
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 1
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x4000 -work-area-backup 1
+#$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x4000 -work-area-backup 1
 
 # If you don't want to execute built-in boot rom code (and there are good reasons at times not to do that) in the
 # AT91SAM9 family, the microcontroller is a lump on a log without initialization.  Because this family has
index 58f12a6870305143c5aa4be939d8027fc13e210b..e6d17bdd8dc99ddf5fd7adf33c26934195decbad 100644 (file)
@@ -114,7 +114,7 @@ $_TARGETNAME configure -event reset-init {
        reg cpsr 0xd3
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00000000 -work-area-size 0x1000 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x1000 -work-area-backup 1
 
 #####################
 # Flash configuration
index 25ff784dbe320dab70c160db65db526e4fd7ce8f..e7b79616c2fd1e8e8fdd84baeff640709bb4c1e1 100644 (file)
@@ -65,7 +65,7 @@ $_TARGETNAME configure -event reset-init {
        flash protect 0 0 7 off
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank str9x 0x00000000 0x00080000 0 0 0
index 529841071b8200070c69167d6a0f2384f88a96b6..e605fc19e01d5f387fb3fe61ee5137c23a9891dc 100644 (file)
@@ -4,5 +4,5 @@
 source [find target/ixp42x.cfg]
 # The _TARGETNAME is set by the above.
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x10000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x00020000 -work-area-size 0x10000 -work-area-backup 0
 
index 90acafa00844591b4926cff7b75cb478d9a116a9..d17b1076b4968c63a3629241e1c15af4bd9d3fc8 100644 (file)
@@ -104,7 +104,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_C
 
 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000  -work-area-size 0x4000 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x40000000  -work-area-size 0x4000 -work-area-backup 1
 
 #reset configuration
 jtag_nsrst_delay 100
index d9f6187b9ee9be19ba623834b4bb7c292b183271..8bc691bab190dee5b385012471c75d44d5d5c986 100644 (file)
@@ -10,7 +10,7 @@
 source [find target/pxa255.cfg]
 
 # Target name is set by above
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x4000000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x4000000 -work-area-size 0x4000 -work-area-backup 0
 
 # flash bank <driver> <base> <size> <chip_width> <bus_width> <target> [options]
 flash bank cfi 0x00000000 0x80000 2 2 $_TARGETNAME jedec_probe
index e98c1c74d60b5763b0bf724eadf7f4762c981266..fa872a9bd7f644e99177047e19152d9451411447 100644 (file)
@@ -39,7 +39,7 @@ jtag newtap $_CHIPNAME bs    -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_
 
 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
-$_TARGETNAME configure -work-area-phys 0x50000000 -work-area-virt 0x50000000 -work-area-size 16384 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 1
 
 $_TARGETNAME configure -event reset-init {
        # We can increase speed now that we know the target is halted.
index 2e13ecbba49b8d0bfc7ea6e6cec195db8b7383ee..54bb7bb7453ccef03c86d087d5d2cd412ec253ea 100644 (file)
@@ -63,7 +63,7 @@ $_TARGETNAME configure -event reset-init {
 
 # required for usable performance. Used for lots of
 # other things than flash programming.
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0
 
 jtag_khz 16000
 
index 064a3b56853d151f2b89d8450bda93fdc2a74c8d..8b3a9ec1cf495e7754637174bdba0590b4bf0615 100644 (file)
@@ -46,7 +46,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.
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00030000 -work-area-size 0x10000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x00030000 -work-area-size 0x10000 -work-area-backup 0
 
 $_TARGETNAME configure -event reset-init {
        puts "Running reset init script for AT91EB40A"
index eb6cabaa2818597d3e266b392712661a174b9b80..e8710f7f3859417544f96317d01e6e34a4b3e32c 100644 (file)
@@ -43,7 +43,7 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
        mww 0xffe00020 0x00000001
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0
 
 flash bank cfi 0x10000000 0x400000 2 2 $_TARGETNAME
 
index e20db5206df6fb1bf3cf2c6c2b39ce5905af5c92..e2972d724a6eccdc52edea8c0033fcbf3307972b 100644 (file)
@@ -42,7 +42,7 @@ set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME
 
 # AT91RM9200 has a 16K block of sram @ 0x0020.0000
-$_TARGETNAME configure -work-area-virt 0x00200000 -work-area-phys 0x00200000 \
+$_TARGETNAME configure -work-area-phys 0x00200000 \
                -work-area-size 0x4000 -work-area-backup 1
 
 # This chip has a DCC ... use it
index d54d3a4daa0232cd04cec0ea409c25a5bf632a44..985e052ae74aa3259b6c5a35ba8627386c30a132 100644 (file)
@@ -33,7 +33,7 @@ set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
 
 # 16K is plenty, the smallest chip has this much
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
 
 reset_config srst_only
 
index 5cde979de0db9c364ef141fadc859fbeec807786..2a7f90c5b0c82a7126ae541a5d13205b5de22ac1 100644 (file)
@@ -46,7 +46,7 @@ $_TARGETNAME configure -event reset-init {
        sleep 100
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base_addr> <size> <chip_width> <bus_width> <target_number> [<target_name> <banks> <sectors_per_bank> <pages_per_sector> <page_size> <num_nvmbits> <ext_freq_khz>]
 flash bank at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 18432
index a6eaa76e0d9f5c0204ba16a7a91e32666cb4a461..df08d10d63d2ab7a727b8833c502b357814cfb48 100644 (file)
@@ -39,6 +39,6 @@ set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
 
 # Internal sram1 memory
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
 
 
index 2548962c3f0316b385ee7d8af22a5b29c4be1ca7..de7e9ab228e4a04f75cc2b32ffea59155c28ad3e 100644 (file)
@@ -47,7 +47,7 @@ target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNA
 $_TARGETNAME invoke-event halted
 
 # Internal sram1 memory
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
 
 scan_chain
 $_TARGETNAME configure -event reset-deassert-post {at91sam_init}
index 237754bae3278c628fb1f9382bf3a5974de9acc0..243f96397598af1ad7ee7426812bcbbcede22c70 100644 (file)
@@ -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-virt 0x00000000 -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 2b4155fbc61366944d575531a9432eb1049727a6..eaf4ee9676d61e32bf87606461e298449d2639af 100644 (file)
@@ -24,7 +24,7 @@ jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -work-area-virt 0 -work-area-phys 0x80014000 -work-area-size 0x1000 -work-area-backup 1
+target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -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 ...]
index 837ea6146ac7025ef6825afdb7a47f9c2bde4281..4a93a67537559e2bb33d4f45fdc5a7c9ea270c58 100644 (file)
@@ -40,7 +40,9 @@ jtag newtap $_CHIPNAME cpu  -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_C
 # Create the GDB Target.
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
-$_TARGETNAME configure -work-area-virt 0xffff4c00 -work-area-phys 0xffff4c00 -work-area-size  0x8000 -work-area-backup 1
+# 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
 # Internal to the chip, there is 45K of SRAM
 #
 
index 8c153347360ac0e8ee8fa4839d7fd24e2108b875..091bfc2f158a0d3aaeec88cb010d6e348f58ad3e 100644 (file)
@@ -46,4 +46,4 @@ $_TARGETNAME configure -event reset-init {
        # We can increase speed now that we know the target is halted.
        jtag_rclk 3000
 }
-$_TARGETNAME configure -work-area-phys 0x50000000 -work-area-virt 0x50000000 -work-area-size 16384 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 1
index 63ec1bb32dcef64ba8b018aeeda2905548c082ee..9f6bcffc88972890b285f73b7e628dcda06833fa 100644 (file)
@@ -31,7 +31,7 @@ set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
 
 # LPC1768 has 32kB of SRAM on its main system bus (so-called Local On-Chip SRAM)
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x10000000 -work-area-size 0x8000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size 0x8000 -work-area-backup 0
 
 $_TARGETNAME configure -event reset-init {
        # Force target into ARM state
index 1a880761905ba5aff31c78a98837b5567041c68c..0aadee8eb75c7cd087d10ec7ddf646ebfa3b80e3 100644 (file)
@@ -31,7 +31,7 @@ set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
 
 # 8kB of internal SRAM
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x2000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x2000 -work-area-backup 0
 
 # 32kB of internal Flash, core clocked with 12MHz crystal
 # flash bank lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc_checksum]
index 61d411b5680ca4886d5e8e214fb48923ada25a1f..471286b88769a982c0b12370561bb5c25cb27868 100644 (file)
@@ -35,7 +35,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
index 5438fc3cd91536f5f99c44f842d1d3a866fdd186..a686a4716033d719fe7785e6f700387ab1bf98ba 100644 (file)
@@ -35,7 +35,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14765 calc_checksum
index b5023437b188a81163cd33431b8b3cbc8b46629f..ce672c8874d1bd0ae8adbc9e9fa79cc53da0fe8e 100644 (file)
@@ -35,7 +35,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 $_TARGETNAME configure -event reset-init {
        # Force target into ARM state
index 08fbf58190fa383619eded634a71b790dcea7cf3..a34940ed6943b1fc3a2f719c145c6800f98d646d 100644 (file)
@@ -28,7 +28,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash configuration
 #flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
index 34b9963f93f223a6ac718c6055b85d173ab6da58..7f716f3defcf2ceab012c6fc97f640874bb40ab5 100644 (file)
@@ -31,7 +31,7 @@ set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
 
 # LPC2378 has 32kB of SRAM on its main system bus (so-called Local On-Chip SRAM)
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x8000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x8000 -work-area-backup 0
 
 $_TARGETNAME configure -event reset-init {
        # Force target into ARM state
index bf33ae0e04a5fa1a6d28b9d8da024ec11a275a2f..e78afa1ac2d9eca79df990fa137668e862f00045 100644 (file)
@@ -31,7 +31,7 @@ set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
 
 # LPC2478 has 64kB of SRAM on its main system bus (so-called Local On-Chip SRAM)
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x10000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x10000 -work-area-backup 0
 
 $_TARGETNAME configure -event reset-init {
        # Force target into ARM state
index 6c0ad85905236fafff0ef3226aecd3987a0c0be4..e444889ebec5fea3aa4102aa0b70bcb9d615f2cb 100644 (file)
@@ -20,7 +20,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME avr -endian $_ENDIAN -chain-position $_TARGETNAME
 
-#$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
+#$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
 
 flash bank avr 0 0 0 0 0
 
index b578457b40409a0d6dcd57c8dd56cecd8fedc109..d825df7f7a1bf338c1c84a980889ea218f6db871 100644 (file)
@@ -48,5 +48,5 @@ proc omap5912_reset {} {
 }
 
 # omap5912 lcd frame buffer as working area
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 \
+$_TARGETNAME configure -work-area-phys 0x20000000 \
        -work-area-size 0x3e800 -work-area-backup 0
index daa54eb97b13ad9b1d63d1749e3d1a23e28117e7..6127a5404f539f3a51240b397ef0a4a3de6b6518 100644 (file)
@@ -31,7 +31,7 @@ jtag newtap $_CHIPNAME cpu -irlen 5  -ircapture 0x1 -irmask 0x1f -expected-id $_
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_TARGETNAME
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0xa0000000 -work-area-size 16384 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0xa0000000 -work-area-size 16384 -work-area-backup 0
 
 flash bank pic32mx 0xbd000000 0 0 0 0
 flash bank pic32mx 0xbfc00000 0 0 0 0
index 84fc2f77c6039e9e23baae3affd7a0e64d3ea4c4..6ca057caaa9cf0440548fdc6b038b68d48293334 100644 (file)
@@ -41,4 +41,4 @@ jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_C
 target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
 # maps to PXA internal RAM. If you are using a PXA255
 # you must initialize SDRAM or leave this option off
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0
index 4b1d85bff65809e4252cd8cbfd050624363d409a..0f1e41263b6fe6c0d811d8286ca939e17eb89544 100644 (file)
@@ -32,7 +32,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base_addr> <size> <chip_width> <bus_width> <target_number> [<target_name> <banks> <sectors_per_bank> <pages_per_sector> <page_size> <num_nvmbits> <ext_freq_khz>]
 flash bank at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 18432
index 12f303051e252e0a41c0ea205104640179f80069..c3f7cd9cae3115887b86628e5332e82188b3bb88 100644 (file)
@@ -43,7 +43,7 @@ $_TARGETNAME configure -event reset-init {
        sleep 100
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base_addr> <size> <chip_width> <bus_width> <target_number> [<target_name> <banks> <sectors_per_bank> <pages_per_sector> <page_size> <num_nvmbits> <ext_freq_khz>]
 flash bank at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 18432
index e845eb5977fcb2fc67e2fd84a4b6db17131ab0fa..9682c4c1a5b5c10756a3d38e2d644b36477fb26b 100644 (file)
@@ -28,7 +28,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CP
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
 
 # speed up memory downloads
 arm7_9 fast_memory_access enable
index f9263a5265f4efa3623a374706488da84175bc2d..d3b665ffed3927b4bea5f1687f5db0314c71e6b1 100644 (file)
@@ -29,7 +29,7 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_C
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
+$_TARGETNAME configure -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
 
 #reset configuration
 reset_config trst_and_srst
index 97d76789e7327dc1151ab7f4a483139822a76885..619824c5132f1d3fc9b38ca5b4ef0ad2e7c299c9 100644 (file)
@@ -63,7 +63,7 @@ jtag newtap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 \
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
 
 flash bank stm32x 0 0 0 0 $_TARGETNAME
 
index 215d12bb47594c2612d1993ebf7038007e5e158f..8e5d36f0038533950ec7a99bcb7be39e13533ca9 100644 (file)
@@ -36,7 +36,7 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
        flash protect 1 0 1 off
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x2000C000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -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 d9e9ecf1919783cf43f9ba00f1390027025e54f7..fe70802b944a1b748c68e694184140e108ac5f94 100644 (file)
@@ -40,7 +40,7 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
        flash protect 0 0 7 off
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -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 74f26642ab28ae9bd0cd507990bdf4f3d399f81a..22d87f87d181e3bff5d0f72f9acd7797a65f1c66 100644 (file)
@@ -43,7 +43,7 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
        flash protect 1 0 1 off
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -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 b8f8f1acf5efc4c18dabdff7be684fcafd34f7fb..0dd684835d3358a2e7c9b62c377e39a21bf52a68 100644 (file)
@@ -60,7 +60,7 @@ $_TARGETNAME configure -event reset-init {
        flash protect 0 0 7 off
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 0
+$_TARGETNAME configure -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 719c9769ab916a5a1ae9343434555131781f8b22..80adc65221dad85205ff8a04dc7a395dcc36ac1c 100644 (file)
@@ -52,5 +52,5 @@ target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNA
 #working_area 0 0xf8004000 0xc000 nobackup
 
 # Internal sram1 memory
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0xf8004000 -work-area-size 0x8000 \
+$_TARGETNAME configure -work-area-phys 0xf8004000 -work-area-size 0x8000 \
 -work-area-backup 0
index 4a0ec71b40b8ab609029234c5941b65c3fb48c15..4af5e4e898027111bf5c7dfbf43fdf2a9e25ba41 100644 (file)
@@ -52,5 +52,5 @@ target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNA
 #working_area 0 0xf8004000 0xc000 nobackup
 
 # Internal sram1 memory
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0xf8004000 -work-area-size 0xc000 \
+$_TARGETNAME configure -work-area-phys 0xf8004000 -work-area-size 0xc000 \
 -work-area-backup 0
index e1c88705566da7a3a7e66cc0f30c927a92745667..9d258a52118762fd6811286e654b498e4f83c4a1 100644 (file)
@@ -76,7 +76,7 @@ $_TARGETNAME configure -event reset-init {
        flash probe 0
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20010000 -work-area-size 0x8060 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x20010000 -work-area-size 0x8060 -work-area-backup 0
 
 
 flash bank cfi 0x50000000 0x400000 2 2 $_TARGETNAME
index 93beefcafe6d9635fa31425316952e605e041ed9..40a7c1db754ba7e8a74e7620e3e843fefcbc073a 100644 (file)
@@ -16,7 +16,7 @@ jtag newtap lpc2148 one -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4f1f0
 #daemon_startup reset
 
 set _TARGETNAME [format "%s.cpu" lpc2148]
-target create lpc2148.cpu arm7tdmi -endian little -work-area-size 0x4000 -work-area-phys 0x40000000 -work-area-virt 0 -work-area-backup 0
+target create lpc2148.cpu arm7tdmi -endian little -work-area-size 0x4000 -work-area-phys 0x40000000 -work-area-backup 0
 
 $_TARGETNAME configure -event reset-init {
 soft_reset_halt

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)