Skip to content

Commit 5336842

Browse files
jonathannilsenbjarki-andreasen
authored andcommitted
Revert "[nrf noup] scripts: west_commands: runners: nrf: workarounds for SDFW v8.0.0"
No longer needed with SDFW v9.0.0 and more recent nrfutil device versions. This reverts commit f3e33c4. Signed-off-by: Jonathan Nilsen <[email protected]>
1 parent 69dedde commit 5336842

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/west_commands/runners/nrf_common.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ def program_hex(self):
270270
if self.erase:
271271
self.exec_op('erase', core='NRFDL_DEVICE_CORE_APPLICATION')
272272
self.exec_op('erase', core='NRFDL_DEVICE_CORE_NETWORK')
273-
# A reset is needed if repartitioning the device memory
274-
self.reset_target()
275-
else:
276-
# Ensure that firmware is not executing while erasing/programming
277-
self.exec_op("reset", option="RESET_VIA_SECDOM")
278273

279274
# Manage SUIT artifacts.
280275
# This logic should be executed only once per build.
@@ -326,8 +321,16 @@ def program_hex(self):
326321
)
327322

328323
if cpuapp:
324+
if not self.erase and self.build_conf.getboolean('CONFIG_NRF_REGTOOL_GENERATE_UICR'):
325+
self.exec_op('erase', core='NRFDL_DEVICE_CORE_APPLICATION',
326+
option={'chip_erase_mode': 'ERASE_UICR',
327+
'qspi_erase_mode': 'ERASE_NONE'})
329328
core = 'NRFDL_DEVICE_CORE_APPLICATION'
330329
elif cpurad:
330+
if not self.erase and self.build_conf.getboolean('CONFIG_NRF_REGTOOL_GENERATE_UICR'):
331+
self.exec_op('erase', core='NRFDL_DEVICE_CORE_NETWORK',
332+
option={'chip_erase_mode': 'ERASE_UICR',
333+
'qspi_erase_mode': 'ERASE_NONE'})
331334
core = 'NRFDL_DEVICE_CORE_NETWORK'
332335
else:
333336
if self.erase:

0 commit comments

Comments
 (0)