aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2018-11-22 19:05:04 +0100
committerTomas Vanek <vanekt@fbl.cz>2020-04-21 16:47:43 +0100
commit6e86ad6166407ca993a8fd37e05269297d470796 (patch)
tree140174fe9f5f5c1b3ff29bebbf0f9e860ed6cff4 /doc
parent73a5f58adba73306b08b7bb22ff8a9511e79869f (diff)
downloadriscv-openocd-6e86ad6166407ca993a8fd37e05269297d470796.zip
riscv-openocd-6e86ad6166407ca993a8fd37e05269297d470796.tar.gz
riscv-openocd-6e86ad6166407ca993a8fd37e05269297d470796.tar.bz2
flash/nor: add flash mdw/h/b commands
Some flash banks are not mapped in the target memory (e.g. SPI flash, some special pages). Add flash version of mdw/h/b which reads data using the flash driver. Change-Id: I66910e0a69cf523fe5ca1ed6ce7b9e8e176aef4a Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4776 Tested-by: jenkins Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 35a41d4..2dbe770 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -5121,6 +5121,19 @@ each block, and the specified length must stay within that bank.
@end deffn
@comment no current checks for errors if fill blocks touch multiple banks!
+@deffn Command {flash mdw} addr [count]
+@deffnx Command {flash mdh} addr [count]
+@deffnx Command {flash mdb} addr [count]
+Display contents of address @var{addr}, as
+32-bit words (@command{mdw}), 16-bit halfwords (@command{mdh}),
+or 8-bit bytes (@command{mdb}).
+If @var{count} is specified, displays that many units.
+Reads from flash using the flash driver, therefore it enables reading
+from a bank not mapped in target address space.
+The flash bank to use is inferred from the @var{address} of
+each block, and the specified length must stay within that bank.
+@end deffn
+
@deffn Command {flash write_bank} num filename [offset]
Write the binary @file{filename} to flash bank @var{num},
starting at @var{offset} bytes from the beginning of the bank. If @var{offset}