Beispiel #1
0
def parse_args():
    parser = ScriptArgumentsParser()
    parser.add_interface_args()
    parser.add_argument('--prod_header', '-ph', action='store_true',
                        help='program product header (DA1469x-00 only)')
    parser.add_argument('image_file', type=str, nargs='?', help='path to image')
    parser.add_config_args()
    args = parser.parse_args()

    cli, serial = parser.get_interface_from_args(args)
    return args.image_file, cli, serial, args.prod_header, args.header_config, args.flash_config
Beispiel #2
0
def parse_args():
    parser = ScriptArgumentsParser()
    parser.add_revision_args()
    parser.add_config_args()
    parser.add_argument('-sf',
                        '--select_flash',
                        type=str,
                        help='preselect Flash type')
    parser.add_argument(
        '--default_img_addr',
        action='store_true',
        help='use default active and update fw image addresses')
    args = parser.parse_args()
    return args.prod_id, args.flash_config, args.header_config, args.select_flash, \
           args.default_img_addr
Beispiel #3
0
def parse_args():
    parser = ScriptArgumentsParser()
    parser.add_argument('bin_file', type=str, help='path to app binary')
    parser.add_argument('--image',
                        metavar='image_file',
                        dest='image_file',
                        type=str,
                        help='output file with FLASH image')
    parser.add_argument('--sw_version',
                        metavar='sw_version_file',
                        dest='sw_version_file',
                        type=str,
                        help='version file used for binary')
    parser.add_config_args()
    args = parser.parse_args()

    return args.bin_file, args.image_file, args.sw_version_file, args.header_config, \
           args.flash_config
Beispiel #4
0
def parse_args():
    parser = ScriptArgumentsParser()
    parser.add_interface_args()
    parser.add_argument('image_file',
                        type=str,
                        nargs='?',
                        help='path to image')
    parser.add_argument('--secure_cfg',
                        metavar='<file_path>',
                        dest='secure_cfg_file',
                        help='path to DA1469x-00 secure configuration file')
    parser.add_argument('--keys',
                        metavar='<file_path>',
                        dest='keys_file',
                        help='path to DA1469x-00 keys file')
    parser.add_config_args()
    args = parser.parse_args()

    cli, serial = parser.get_interface_from_args(args)
    return args.image_file, args.secure_cfg_file, args.keys_file, cli, serial, args.header_config, \
           args.flash_config