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:
Carles Cufi 2025-01-30 10:04:39 +01:00 committed by Benjamin Cabé
commit 4e8ec169fb
2 changed files with 3 additions and 3 deletions

View file

@ -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}')

View file

@ -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}']