doc: `address` is optional in `*_image` commands

Change-Id: I3d4320634bf59be18bbcb22c9e4b13a3ccd7a45a
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8061
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Jan Matyas <jan.matyas@codasip.com>
This commit is contained in:
Evgeniy Naydanov 2023-12-25 13:03:54 +03:00 committed by Antonio Borneo
parent b123128737
commit 0886730f5a
2 changed files with 19 additions and 11 deletions

View File

@ -9328,7 +9328,7 @@ Loads an image stored in memory by @command{fast_load_image} to the
current target. Must be preceded by fast_load_image. current target. Must be preceded by fast_load_image.
@end deffn @end deffn
@deffn {Command} {fast_load_image} filename address [@option{bin}|@option{ihex}|@option{elf}|@option{s19}] @deffn {Command} {fast_load_image} filename [address [@option{bin}|@option{ihex}|@option{elf}|@option{s19} [@option{min_addr} [@option{max_length}]]]]]]
Normally you should be using @command{load_image} or GDB load. However, for Normally you should be using @command{load_image} or GDB load. However, for
testing purposes or when I/O overhead is significant(OpenOCD running on an embedded testing purposes or when I/O overhead is significant(OpenOCD running on an embedded
host), storing the image in memory and uploading the image to the target host), storing the image in memory and uploading the image to the target
@ -9339,8 +9339,10 @@ target programming performance as I/O and target programming can easily be profi
separately. separately.
@end deffn @end deffn
@deffn {Command} {load_image} filename address [[@option{bin}|@option{ihex}|@option{elf}|@option{s19}] @option{min_addr} @option{max_length}] @deffn {Command} {load_image} filename [address [@option{bin}|@option{ihex}|@option{elf}|@option{s19} [@option{min_addr} [@option{max_length}]]]]
Load image from file @var{filename} to target memory offset by @var{address} from its load address. Load image from file @var{filename} to target memory.
If an @var{address} is specified, it is used as an offset to the file format
defined addressing (e.g. @option{bin} file is loaded at that address).
The file format may optionally be specified The file format may optionally be specified
(@option{bin}, @option{ihex}, @option{elf}, or @option{s19}). (@option{bin}, @option{ihex}, @option{elf}, or @option{s19}).
In addition the following arguments may be specified: In addition the following arguments may be specified:
@ -9364,15 +9366,21 @@ The file format may optionally be specified
(@option{bin}, @option{ihex}, or @option{elf}) (@option{bin}, @option{ihex}, or @option{elf})
@end deffn @end deffn
@deffn {Command} {verify_image} filename address [@option{bin}|@option{ihex}|@option{elf}] @deffn {Command} {verify_image} filename [address [@option{bin}|@option{ihex}|@option{elf}]]
Verify @var{filename} against target memory starting at @var{address}. Verify @var{filename} against target memory.
If an @var{address} is specified, it is used as an offset to the file format
defined addressing (e.g. @option{bin} file is compared against memory starting
at that address).
The file format may optionally be specified The file format may optionally be specified
(@option{bin}, @option{ihex}, or @option{elf}) (@option{bin}, @option{ihex}, or @option{elf})
This will first attempt a comparison using a CRC checksum, if this fails it will try a binary compare. This will first attempt a comparison using a CRC checksum, if this fails it will try a binary compare.
@end deffn @end deffn
@deffn {Command} {verify_image_checksum} filename address [@option{bin}|@option{ihex}|@option{elf}] @deffn {Command} {verify_image_checksum} filename [address [@option{bin}|@option{ihex}|@option{elf}]]
Verify @var{filename} against target memory starting at @var{address}. Verify @var{filename} against target memory.
If an @var{address} is specified, it is used as an offset to the file format
defined addressing (e.g. @option{bin} file is compared against memory starting
at that address).
The file format may optionally be specified The file format may optionally be specified
(@option{bin}, @option{ihex}, or @option{elf}) (@option{bin}, @option{ihex}, or @option{elf})
This perform a comparison using a CRC checksum only This perform a comparison using a CRC checksum only

View File

@ -6926,8 +6926,8 @@ static const struct command_registration target_exec_command_handlers[] = {
.mode = COMMAND_ANY, .mode = COMMAND_ANY,
.help = "Load image into server memory for later use by " .help = "Load image into server memory for later use by "
"fast_load; primarily for profiling", "fast_load; primarily for profiling",
.usage = "filename address ['bin'|'ihex'|'elf'|'s19'] " .usage = "filename [address ['bin'|'ihex'|'elf'|'s19' "
"[min_address [max_length]]", "[min_address [max_length]]]]",
}, },
{ {
.name = "fast_load", .name = "fast_load",
@ -7100,8 +7100,8 @@ static const struct command_registration target_exec_command_handlers[] = {
.name = "load_image", .name = "load_image",
.handler = handle_load_image_command, .handler = handle_load_image_command,
.mode = COMMAND_EXEC, .mode = COMMAND_EXEC,
.usage = "filename address ['bin'|'ihex'|'elf'|'s19'] " .usage = "filename [address ['bin'|'ihex'|'elf'|'s19' "
"[min_address] [max_length]", "[min_address [max_length]]]]",
}, },
{ {
.name = "dump_image", .name = "dump_image",