Lines Matching +full:- +full:- +full:erase
3 # Based on J-Link runner
5 # SPDX-License-Identifier: Apache-2.0
21 def __init__(self, cfg, device, dev_id, commander, dt_flash, erase, speed, tool_opt): argument
32 self.erase = erase
46 dev_id=True, flash_addr=True, erase=True,
50 def dev_id_help(cls) -> str:
51 return '''Device identifier. Use it to select the J-Link Serial Number
55 def tool_opt_help(cls) -> str:
56 return "Additional options for Simplicity Commander, e.g. '--noreset'"
61 parser.add_argument('--device', required=True,
65 parser.add_argument('--commander', default=DEFAULT_APP,
67 parser.add_argument('--speed', default=None,
77 erase=args.erase,
84 opts = ['--device', self.device]
85 if self.erase:
86 opts.append('--masserase')
88 opts.extend(['--serialno', self.dev_id])
90 opts.extend(['--speed', self.speed])
109 flash_args = ['--binary', '--address', f'0x{flash_addr:x}', flash_file]
120 flash_args = ['--binary', '--address', f'0x{flash_addr:x}', flash_file]