scripts: runners: nrfjprog: Remove erasepage handling
This is no longer used at all. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
fa66984c2b
commit
4e8ec169fb
2 changed files with 3 additions and 3 deletions
|
@ -106,9 +106,6 @@ class NrfJprogBinaryRunner(NrfBinaryRunner):
|
|||
cmd.append('--reset')
|
||||
if _op['kind'] == 'RESET_PIN':
|
||||
cmd.append('--pinreset')
|
||||
elif op_type == 'erasepage':
|
||||
cmd.append('--erasepage')
|
||||
cmd.append(f"0x{_op['page']:08x}")
|
||||
else:
|
||||
raise RuntimeError(f'Invalid operation: {op_type}')
|
||||
|
||||
|
|
|
@ -120,6 +120,9 @@ class NrfUtilBinaryRunner(NrfBinaryRunner):
|
|||
cmd.append(cli_opts)
|
||||
elif op_type == 'reset':
|
||||
cmd += ['--reset-kind', _op['kind']]
|
||||
elif op_type == 'erase':
|
||||
cmd += ['--reset-kind', _op['kind']]
|
||||
|
||||
|
||||
cmd += ['--core', op['core']] if op.get('core') else []
|
||||
cmd += ['--x-family', f'{self.family}']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue