Lines Matching +full:ext +full:- +full:address +full:- +full:match

3 # SPDX-License-Identifier: MIT
5 # pylint: skip-file
33 w = buf[0:30].decode("utf-8")
36 if w[0] == ':' and re.match(rb"^[:0-9a-fA-F\r\n]+$", buf):
58 # NO-flash flag set; skip block
71 padding = newaddr - curraddr
77 assert False, "Non-word padding size at " + ptr
79 padding -= 4
94 if blockno == (numblocks - 1):
95 print("--- UF2 File Header Info ---")
103 print("Target Address is 0x{:08x}".format(families_found[family_hex]))
108 print("----------------------------")
122 return bytes(outp, "utf-8")
127 while len(datapadding) < 512 - 256 - 32 - 4:
161 while len(hd) < 512 - 4:
177 while i < len(line) - 1:
192 while i < len(rec) - 1:
206 return b.decode("utf-8")
244 return re.search(r"Board-ID: ([^\r\n]*)", file_content).group(1)
282 parser.add_argument('-b', '--base', dest='base', type=str,
284 help='set base address of application for BIN format (default: 0x2000)')
285 parser.add_argument('-f', '--family', dest='family', type=str,
287 help='specify familyID - number or name (default: 0x0)')
288 parser.add_argument('-o', '--output', metavar="FILE", dest='output', type=str,
290 parser.add_argument('-d', '--device', dest="device_path",
292 parser.add_argument('-l', '--list', action='store_true',
294 parser.add_argument('-c', '--convert', action='store_true',
296 parser.add_argument('-D', '--deploy', action='store_true',
298 parser.add_argument('-w', '--wait', action='store_true',
300 parser.add_argument('-C', '--carray', action='store_true',
302 parser.add_argument('-i', '--info', action='store_true',
325 ext = "uf2"
330 ext = "bin"
335 outbuf = convert_from_hex_to_uf2(inpbuf.decode("utf-8"))
338 ext = "h"
342 print("Converted to %s, output size: %d, start address: 0x%x" %
343 (ext, len(outbuf), appstartaddr))
344 if args.convert or ext != "uf2":
346 args.output = "flash." + ext
349 if ext == "uf2" and not args.convert and not args.info: