Skip to content

Commit 11a055b

Browse files
committed
[nrf fromtree] scripts: runners: nrfjprog: Remove erasepage handling
This is no longer used at all. Signed-off-by: Carles Cufi <[email protected]> (cherry picked from commit 4e8ec16)
1 parent 471b1d0 commit 11a055b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/west_commands/runners/nrfjprog.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ def do_exec_op(self, op, force=False):
106106
cmd.append('--reset')
107107
if _op['kind'] == 'RESET_PIN':
108108
cmd.append('--pinreset')
109-
elif op_type == 'erasepage':
110-
cmd.append('--erasepage')
111-
cmd.append(f"0x{_op['page']:08x}")
112109
else:
113110
raise RuntimeError(f'Invalid operation: {op_type}')
114111

scripts/west_commands/runners/nrfutil.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def _append_batch(self, op, json_file):
120120
cmd.append(cli_opts)
121121
elif op_type == 'reset':
122122
cmd += ['--reset-kind', _op['kind']]
123+
elif op_type == 'erase':
124+
cmd += ['--reset-kind', _op['kind']]
125+
123126

124127
cmd += ['--core', op['core']] if op.get('core') else []
125128
cmd += ['--x-family', f'{self.family}']

0 commit comments

Comments
 (0)