Skip to content

Commit 29af3e0

Browse files
committed
scripts: nrfjprog: Use built-in pin reset enable
Use nrfjprog's built-in pin reset enabling functionality instead of doing it manually. Signed-off-by: Carles Cufi <[email protected]>
1 parent cb3d127 commit 29af3e0

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

scripts/support/runner/nrfjprog.py

+4-9
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,11 @@ def do_run(self, command, **kwargs):
7676
]
7777
if self.family == 'NRF52':
7878
commands.extend([
79-
# Set reset pin
80-
['nrfjprog', '--memwr', '0x10001200', '--val', '0x00000015',
81-
'-f', self.family, '--snr', board_snr],
82-
['nrfjprog', '--memwr', '0x10001204', '--val', '0x00000015',
83-
'-f', self.family, '--snr', board_snr],
84-
['nrfjprog', '--reset', '-f', self.family, '--snr', board_snr],
79+
# Enable pin reset
80+
['nrfjprog', '--pinresetenable', '-f', self.family,
81+
'--snr', board_snr],
8582
])
86-
commands.append(['nrfjprog',
87-
'--pinreset',
88-
'-f', self.family,
83+
commands.append(['nrfjprog', '--pinreset', '-f', self.family,
8984
'--snr', board_snr])
9085

9186
for cmd in commands:

0 commit comments

Comments
 (0)