Skip to content

Commit 16f212d

Browse files
carlescufikartben
authored andcommitted
scripts: runners: nrf54H/92: Use RESET_HARD instead of RESET_SYSTEM
The nRF54H and the nRF92 series do not support the RESET_SYSTEM reset kind. Instead one must use RESET_HARD, which this patch now implements. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
1 parent 0c4f198 commit 16f212d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/west_commands/runners/nrf_common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,12 @@ def program_hex(self):
420420

421421

422422
def reset_target(self):
423+
sw_reset = "RESET_HARD" if self.family in ('nrf54h', 'nrf92') else "RESET_SYSTEM"
423424
# Default to soft reset on nRF52 only, because ICs in these series can
424425
# reconfigure the reset pin as a regular GPIO
425-
default = "RESET_SYSTEM" if self.family == 'nrf52' else "RESET_PIN"
426-
kind = ("RESET_SYSTEM" if self.softreset else "RESET_PIN" if
427-
self.pinreset else default)
426+
default = sw_reset if self.family == 'nrf52' else "RESET_PIN"
427+
kind = (sw_reset if self.softreset else "RESET_PIN" if
428+
self.pinreset else default)
428429

429430
if self.family == 'nrf52' and kind == "RESET_PIN":
430431
# Write to the UICR enabling nRESET in the corresponding pin

0 commit comments

Comments
 (0)