aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Hošek <ondra.hosek@gmail.com>2024-08-25 13:54:15 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2024-09-07 11:38:30 +0000
commitca72d23c3b9df2ffa9e18cb5e3b4ccc2194ff329 (patch)
tree6787c1e3ca714d051f0a6395cf06ea9adb6d1bfd
parente01e180f6248590348bad5c354c6b4e0cf1a956a (diff)
downloadriscv-openocd-ca72d23c3b9df2ffa9e18cb5e3b4ccc2194ff329.zip
riscv-openocd-ca72d23c3b9df2ffa9e18cb5e3b4ccc2194ff329.tar.gz
riscv-openocd-ca72d23c3b9df2ffa9e18cb5e3b4ccc2194ff329.tar.bz2
doc: fix stm32l4x option_write usage
stm32l4x option_write works like stm32h7x option_write, i.e. expects the value to write after reg_offset and optionally reg_mask after the value. Change-Id: I57fb4fb1dbf7f43fe063b48f4db2dd5f2ef0ade0 Signed-off-by: Ondřej Hošek <ondra.hosek@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8464 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r--doc/openocd.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index dee4313..2e48d8e 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -8075,7 +8075,7 @@ The above example will read out the FLASH_OPTR register which contains the RDP
option byte, Watchdog configuration, BOR level etc.
@end deffn
-@deffn {Command} {stm32l4x option_write} num reg_offset reg_mask
+@deffn {Command} {stm32l4x option_write} num reg_offset value [reg_mask]
Write an option byte register of the stm32l4x device.
The @var{num} parameter is a value shown by @command{flash banks}, @var{reg_offset}
is the register offset of the Option byte to write, and @var{reg_mask} is the mask