Lines Matching +full:op +full:- +full:mode
4 # SPDX-License-Identifier: Apache-2.0
18 '''Runner front-end for nrfjprog.'''
34 def tool_opt_help(cls) -> str:
35 return 'Additional options for nrfjprog, e.g. "--clockspeed"'
47 parser.add_argument('--qspiini', required=False, dest='qspi_ini',
51 snrs = self.check_output(['nrfjprog', '--ids'])
57 def do_exec_op(self, op, force=False): argument
58 self.logger.debug(f'Executing op: {op}')
59 # Translate the op
67 core_opt = ['--coprocessor', cores[op['core']]] \
68 if op.get('core') else []
71 _op = op['operation']
74 if op_type == 'pinreset-enable':
75 cmd.append('--pinresetenable')
77 cmd.append('--program')
81 cmd.append('--chiperase')
83 cmd.append('--sectorerase')
85 cmd.append('--sectoranduicrerase')
89 raise RuntimeError(f'Invalid erase mode: {erase}')
93 cmd.append('--qspisectorerase')
96 cmd.append('--verify')
98 cmd.append('--qspiini')
101 cmd.append('--recover')
104 cmd.append('--reset')
106 cmd.append('--pinreset')
108 cmd.append('--erasepage')
114 self.check_call(cmd + ['-f', families[self.family]] + core_opt +
115 ['--snr', self.dev_id] + self.tool_opt)