scripts: west: runners: nrfjprog: add option to not erase
On some new SoCs, the erase option is not required, so introduce a new option that doesn't set any erase mode. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
1606f65972
commit
b2c8f7680d
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ class NrfJprogBinaryRunner(NrfBinaryRunner):
|
||||||
cmd.append('--sectorerase')
|
cmd.append('--sectorerase')
|
||||||
elif erase == 'ERASE_PAGES_INCLUDING_UICR':
|
elif erase == 'ERASE_PAGES_INCLUDING_UICR':
|
||||||
cmd.append('--sectoranduicrerase')
|
cmd.append('--sectoranduicrerase')
|
||||||
|
elif erase == 'NO_ERASE':
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
raise RuntimeError(f'Invalid erase mode: {erase}')
|
raise RuntimeError(f'Invalid erase mode: {erase}')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue