summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2009-10-20 12:03:36 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2009-10-20 12:03:36 +0200
commitad7563961104833a986a29c4a70c98078f661beb (patch)
tree80a4845823de8db3284950c3062cb68892a4b953 /doc
parente4dba30b639c26d7f929ff7286d823dfc490ff1c (diff)
downloadopenocd_libswd-ad7563961104833a986a29c4a70c98078f661beb.tar.gz
openocd_libswd-ad7563961104833a986a29c4a70c98078f661beb.tar.bz2
openocd_libswd-ad7563961104833a986a29c4a70c98078f661beb.tar.xz
openocd_libswd-ad7563961104833a986a29c4a70c98078f661beb.zip
Added 'unlock' option to flash write_image
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 7ebe4578..107441d2 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -3537,7 +3537,7 @@ The @var{num} parameter is a value shown by @command{flash banks}.
@end deffn
@anchor{flash write_image}
-@deffn Command {flash write_image} [erase] filename [offset] [type]
+@deffn Command {flash write_image} [erase] [unlock] filename [offset] [type]
Write the image @file{filename} to the current target's flash bank(s).
A relocation @var{offset} may be specified, in which case it is added
to the base address for each section in the image.
@@ -3546,8 +3546,9 @@ explicitly as @option{bin} (binary), @option{ihex} (Intel hex),
@option{elf} (ELF file), @option{s19} (Motorola s19).
@option{mem}, or @option{builder}.
The relevant flash sectors will be erased prior to programming
-if the @option{erase} parameter is given.
-The flash bank to use is inferred from the @var{address} of
+if the @option{erase} parameter is given. If @option{unlock} is
+provided, then the flash banks are unlocked before erase and
+program. The flash bank to use is inferred from the @var{address} of
each image segment.
@end deffn