aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRobert Jordens <jordens@gmail.com>2015-07-01 02:55:49 -0600
committerSpencer Oliver <spen@spen-soft.co.uk>2015-08-06 13:14:04 +0100
commit3edcb941864d677e30d36ad77c22d86ec7ac8eb3 (patch)
tree81f6af02d4803ffc3bec26577045ddebfb20794b /doc
parent2d99a0defa8fde13d4f421d54dbb6246b908303d (diff)
flash/nor/tcl: add read_bank and verify_bank
The only read access to flash chips so is through the target's memory. Flashes like jtagspi do not expose a memory mapped interface to the flash. These commands use the flash_driver_read() driver API directly. Change-Id: I40b910de650114a3f676507f9f059a234377d862 Signed-off-by: Robert Jordens <jordens@gmail.com> Reviewed-on: http://openocd.zylin.com/2842 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 140e86b4..4430050e 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -4644,6 +4644,18 @@ starting at @var{offset} bytes from the beginning of the bank.
The @var{num} parameter is a value shown by @command{flash banks}.
@end deffn
+@deffn Command {flash read_bank} num filename offset length
+Read @var{length} bytes from the flash bank @var{num} starting at @var{offset}
+and write the contents to the binary @file{filename}.
+The @var{num} parameter is a value shown by @command{flash banks}.
+@end deffn
+
+@deffn Command {flash verify_bank} num filename offset
+Compare the contents of the binary file @var{filename} with the contents of the
+flash @var{num} starting at @var{offset}. Fails if the contents do not match.
+The @var{num} parameter is a value shown by @command{flash banks}.
+@end deffn
+
@deffn Command {flash write_image} [erase] [unlock] filename [offset] [type]
Write the image @file{filename} to the current target's flash bank(s).
Only loadable sections from the image are written.