summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-20 10:35:29 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-20 10:35:29 +0000
commit6cf3f38acf4e5781ba025c33d84b19c80157254d (patch)
tree26055fe2b9e3d208a50583cffd2152337555ea2c /doc
parentfddbc0c1436da3cefc720cfef926157da0f5dcb3 (diff)
downloadopenocd_libswd-6cf3f38acf4e5781ba025c33d84b19c80157254d.tar.gz
openocd_libswd-6cf3f38acf4e5781ba025c33d84b19c80157254d.tar.bz2
openocd_libswd-6cf3f38acf4e5781ba025c33d84b19c80157254d.tar.xz
openocd_libswd-6cf3f38acf4e5781ba025c33d84b19c80157254d.zip
- update docs for flash write_image command
- remove info on flash auto_erase, added to removed commands section git-svn-id: svn://svn.berlios.de/openocd/trunk@596 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi19
1 files changed, 7 insertions, 12 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 60142be7..985a9d3a 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -610,11 +610,6 @@ Supported variants are @option{ixp42x}, @option{ixp45x}, @option{ixp46x},
@cindex flash bank
Configures a flash bank at <@var{base}> of <@var{size}> bytes and <@var{chip_width}>
and <@var{bus_width}> bytes using the selected flash <driver>.
-
-@item @b{flash auto_erase} <@option{on}|@option{off}>
-@cindex flash auto_erase
-auto erase flash banks prior to writing. Currently only works when using
-@option{flash write_image} command. Default is @option{off}.
@end itemize
@subsection lpc2000 options
@@ -884,20 +879,17 @@ Erase sectors starting at <@var{address}> for <@var{length}> number of bytes
@cindex flash write_bank
Write the binary <@var{file}> to flash bank <@var{num}>, starting at
<@option{offset}> bytes from the beginning of the bank.
-@item @b{flash write_image} <@var{file}> [@var{offset}] [@var{type}]
+@item @b{flash write_image} [@var{erase}] <@var{file}> [@var{offset}] [@var{type}]
@cindex flash write_image
Write the image <@var{file}> to the current target's flash bank(s). A relocation
[@var{offset}] can be specified and the file [@var{type}] can be specified
explicitly as @option{bin} (binary), @option{ihex} (Intel hex), @option{elf}
-(ELF file) or @option{s19} (Motorola s19).
+(ELF file) or @option{s19} (Motorola s19). Flash memory will be erased prior to programming
+if the @option{erase} parameter is given.
@item @b{flash protect} <@var{num}> <@var{first}> <@var{last}> <@option{on}|@option{off}>
@cindex flash protect
Enable (@var{on}) or disable (@var{off}) protection of flash sectors <@var{first}> to
-<@var{last}> of @option{flash bank} <@var{num}>.
-@item @b{flash auto_erase} <@var{on}|@var{off}>
-@cindex flash auto_erase
-Enable (@option{on}) to erase flash banks prior to writing using the flash @option{write_image} command
-only. Default is (@option{off}), flash banks have to be erased using @option{flash erase} command.
+<@var{last}> of @option{flash bank} <@var{num}>.
@end itemize
@page
@@ -1340,6 +1332,9 @@ use @option{flash write_bank} command with same args
@item @b{arm7_9 fast_writes}
@cindex arm7_9 fast_writes
use @option{arm7_9 fast_memory_access} command with same args
+@item @b{flash auto_erase}
+@cindex flash auto_erase
+use @option{flash write_image} command passing @option{erase} as the first parameter.
@end itemize
@node FAQ