Exemple #1
0
def parse_args():
    parser = ScriptArgumentsParser()
    parser.add_interface_args()
    args = parser.parse_args()

    cli, serial = parser.get_interface_from_args(args)
    return cli, serial
Exemple #2
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
Exemple #3
0
def parse_args():
    parser = ScriptArgumentsParser()
    parser.add_interface_args()
    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')
    args = parser.parse_args()

    cli, serial = parser.get_interface_from_args(args)
    return args.secure_cfg_file, args.keys_file, cli, serial
Exemple #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