Skip to content

Commit 8189f39

Browse files
[nrf fromlist] scripts: west_commands: runners: reset after erase on nrf54h/nrf92
Upstream PR #: 82976 Add a reset after erasing the application and radio domains. This is needed to free up the memory resources used by existing images when new images being programmed have a conflicting memory map. Signed-off-by: Jonathan Nilsen <[email protected]>
1 parent 150d7c2 commit 8189f39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/west_commands/runners/nrf_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ 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()
273275

274276
# Manage SUIT artifacts.
275277
# This logic should be executed only once per build.

0 commit comments

Comments
 (0)