aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJan Vojtech <honza.vojtech@gmail.com>2018-09-04 11:50:09 +0200
committerMatthias Welwarsky <matthias@welwarsky.de>2019-02-07 07:52:44 +0000
commit9f576d3f480b039571b6c911ad80d9aa9cf05f91 (patch)
tree5ac47854aceb5383e5f5f865dd7bd3c3c17ba4e9 /doc
parent7a3eec2b4d9dbb9533acfb271dbe91afa0727c8e (diff)
flash/nor/stm32f1x: Ability to change user option bytes.
Adds ability to change the user data in STM32F1x/STM32F3x MCU's option byte. Since OpenOCD prints the content of user data in option byte registers, it is seems logical to also provide a way how to change this data. Change-Id: Ie6cb756b4f11b5c6dabd34bc89434a358eb758ff Signed-off-by: Jan Vojtech <honza.vojtech@gmail.com> Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4663 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index aa37b37f..6c6dc9ca 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -6607,9 +6607,10 @@ or upon executing the @command{stm32f1x options_load} command.
The @var{num} parameter is a value shown by @command{flash banks}.
@end deffn
-@deffn Command {stm32f1x options_write} num (@option{SWWDG}|@option{HWWDG}) (@option{RSTSTNDBY}|@option{NORSTSTNDBY}) (@option{RSTSTOP}|@option{NORSTSTOP})
+@deffn Command {stm32f1x options_write} num (@option{SWWDG}|@option{HWWDG}) (@option{RSTSTNDBY}|@option{NORSTSTNDBY}) (@option{RSTSTOP}|@option{NORSTSTOP}) (@option{USEROPT} user_data)
Writes the stm32 option byte with the specified values.
The @var{num} parameter is a value shown by @command{flash banks}.
+The @var{user_data} parameter is content of higher 16 bits of the option byte register (Data0 and Data1 as one 16bit number).
@end deffn
@deffn Command {stm32f1x options_load} num