From c088680addbe8cbd0ea73785702a540aa0bb73b1 Mon Sep 17 00:00:00 2001 From: Pete Dietl Date: Sun, 3 Nov 2024 14:48:47 -0800 Subject: [PATCH] Update help documentation on supported file formats Add mention of supporting AXF and SREC files --- pyocd/subcommands/load_cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyocd/subcommands/load_cmd.py b/pyocd/subcommands/load_cmd.py index 29f7b2ef2..acfd0852a 100644 --- a/pyocd/subcommands/load_cmd.py +++ b/pyocd/subcommands/load_cmd.py @@ -34,7 +34,7 @@ class LoadSubcommand(SubcommandBase): NAMES = ['load', 'flash'] HELP = "Load one or more images into target device memory." - EPILOG = "Supported file formats are: binary, Intel hex, and ELF32." + EPILOG = "Supported file formats are: binary (.bin), ELF32/AXF (.elf and .axf), Intel hex (.hex), and Motorola S-record (.srec)." DEFAULT_LOG_LEVEL = logging.WARNING ## @brief Valid erase mode options. @@ -57,7 +57,7 @@ def get_args(cls) -> List[argparse.ArgumentParser]: "Only allowed if a single binary file is being loaded.") parser_options.add_argument("--trust-crc", action="store_true", help="Use only the CRC of each page to determine if it already has the same data.") - parser_options.add_argument("--format", choices=("bin", "hex", "elf"), + parser_options.add_argument("--format", choices=("axf", "bin", "elf", "hex", "srec"), help="File format. Default is to use the file's extension. If multiple files are provided, then " "all must be of this type.") parser_options.add_argument("--skip", metavar="BYTES", default=0, type=int_base_0,