diff options
author | michal smulski <michal.smulski@ooma.com> | 2010-04-20 22:18:04 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-04-20 22:18:04 +0200 |
commit | cc5f3c85de7632a32f41b435c54b83487a3aa622 (patch) | |
tree | 982a2239724d78d9b198555f4b40fc1272c5982a /doc | |
parent | e4056cca2d10da3a746ebfa01799165140640071 (diff) | |
download | riscv-openocd-cc5f3c85de7632a32f41b435c54b83487a3aa622.zip riscv-openocd-cc5f3c85de7632a32f41b435c54b83487a3aa622.tar.gz riscv-openocd-cc5f3c85de7632a32f41b435c54b83487a3aa622.tar.bz2 |
docs: improve load_image docs
add docs for missing args.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/openocd.texi | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index 5273d5d..cfba79f 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -5671,10 +5671,20 @@ separately. @end deffn @anchor{load_image} -@deffn Command {load_image} filename address [@option{bin}|@option{ihex}|@option{elf}] -Load image from file @var{filename} to target memory at @var{address}. +@deffn Command {load_image} filename address [@option{bin}|@option{ihex}|@option{elf}] @option{min_addr} @option{max_length}] +Load image from file @var{filename} to target memory offset by @var{address} from its load address. The file format may optionally be specified -(@option{bin}, @option{ihex}, or @option{elf}) +(@option{bin}, @option{ihex}, or @option{elf}). +In addition the following arguments may be specifed: +@var{min_addr} - ignore data below @var{min_addr} (this is w.r.t. to the target's load address + @var{address}) +@var{max_length} - maximum number of bytes to load. +@example +proc load_image_bin @{fname foffset address length @} @{ + # Load data from fname filename at foffset offset to + # target at address. Load at most length bytes. + load_image $fname [expr $address - $foffset] bin $address $length +@} +@end example @end deffn @deffn Command {test_image} filename [address [@option{bin}|@option{ihex}|@option{elf}]] |