scripts: west: runners: nrfjprog: add erasepage op
Add a new operation that allows erasing pages. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
b2c8f7680d
commit
a99b5ca01b
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ class NrfJprogBinaryRunner(NrfBinaryRunner):
|
|||
cmd.append('--reset')
|
||||
if _op['option'] == '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}')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue