diff options
author | Ondřej Hošek <ondra.hosek@gmail.com> | 2024-08-25 23:50:07 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2024-09-07 11:38:52 +0000 |
commit | 7e271c91516ce106ceec6af952b9e02641b203cd (patch) | |
tree | 3924caaae31dff654c5418eb10cecf62a0c75231 | |
parent | ca72d23c3b9df2ffa9e18cb5e3b4ccc2194ff329 (diff) | |
download | riscv-openocd-7e271c91516ce106ceec6af952b9e02641b203cd.zip riscv-openocd-7e271c91516ce106ceec6af952b9e02641b203cd.tar.gz riscv-openocd-7e271c91516ce106ceec6af952b9e02641b203cd.tar.bz2 |
flash/stm32l4x: option_write usage: mask is optional
If no mask is given, the value in the option register is replaced
completely. If a mask is set, only those bits that are set in the mask
are transferred into the option register; the others remain unchanged.
Change-Id: If488a10f92d7dcc0e0f192aef5e67c255fd529c3
Signed-off-by: Ondřej Hošek <ondra.hosek@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8466
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
-rw-r--r-- | src/flash/nor/stm32l4x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/stm32l4x.c b/src/flash/nor/stm32l4x.c index bb6e9ef..9235dd7 100644 --- a/src/flash/nor/stm32l4x.c +++ b/src/flash/nor/stm32l4x.c @@ -2622,7 +2622,7 @@ static const struct command_registration stm32l4_exec_command_handlers[] = { .name = "option_write", .handler = stm32l4_handle_option_write_command, .mode = COMMAND_EXEC, - .usage = "bank_id reg_offset value mask", + .usage = "bank_id reg_offset value [mask]", .help = "Write device option bit fields with provided value.", }, { |