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:
parent
b123128737
commit
0886730f5a
|
@ -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.
|
||||
@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
|
||||
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
|
||||
|
@ -9339,8 +9339,10 @@ target programming performance as I/O and target programming can easily be profi
|
|||
separately.
|
||||
@end deffn
|
||||
|
||||
@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.
|
||||
@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.
|
||||
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
|
||||
(@option{bin}, @option{ihex}, @option{elf}, or @option{s19}).
|
||||
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})
|
||||
@end deffn
|
||||
|
||||
@deffn {Command} {verify_image} filename address [@option{bin}|@option{ihex}|@option{elf}]
|
||||
Verify @var{filename} against target memory starting at @var{address}.
|
||||
@deffn {Command} {verify_image} filename [address [@option{bin}|@option{ihex}|@option{elf}]]
|
||||
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
|
||||
(@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.
|
||||
@end deffn
|
||||
|
||||
@deffn {Command} {verify_image_checksum} filename address [@option{bin}|@option{ihex}|@option{elf}]
|
||||
Verify @var{filename} against target memory starting at @var{address}.
|
||||
@deffn {Command} {verify_image_checksum} filename [address [@option{bin}|@option{ihex}|@option{elf}]]
|
||||
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
|
||||
(@option{bin}, @option{ihex}, or @option{elf})
|
||||
This perform a comparison using a CRC checksum only
|
||||
|
|
|
@ -6926,8 +6926,8 @@ static const struct command_registration target_exec_command_handlers[] = {
|
|||
.mode = COMMAND_ANY,
|
||||
.help = "Load image into server memory for later use by "
|
||||
"fast_load; primarily for profiling",
|
||||
.usage = "filename address ['bin'|'ihex'|'elf'|'s19'] "
|
||||
"[min_address [max_length]]",
|
||||
.usage = "filename [address ['bin'|'ihex'|'elf'|'s19' "
|
||||
"[min_address [max_length]]]]",
|
||||
},
|
||||
{
|
||||
.name = "fast_load",
|
||||
|
@ -7100,8 +7100,8 @@ static const struct command_registration target_exec_command_handlers[] = {
|
|||
.name = "load_image",
|
||||
.handler = handle_load_image_command,
|
||||
.mode = COMMAND_EXEC,
|
||||
.usage = "filename address ['bin'|'ihex'|'elf'|'s19'] "
|
||||
"[min_address] [max_length]",
|
||||
.usage = "filename [address ['bin'|'ihex'|'elf'|'s19' "
|
||||
"[min_address [max_length]]]]",
|
||||
},
|
||||
{
|
||||
.name = "dump_image",
|
||||
|
|
Loading…
Reference in New Issue