Hi Jared,
Thanks for the reply. Have not installed probe-rs. nrfjprog does not see the probe and don’t seem to have jlinkexe.
After some dinking this morning I was able to reliably reset via pyocd:
$ pyocd commander -c “set reset-type system ; reset” -t nrf91
0001274 W Skipping CoreSight discovery for AHB-AP#1 because it is disabled [ap]
Resetting target
But multiple efforts with the API failed, including
target.reset(target.ResetType.SW_SYSTEM)
target.reset(target.ResetType.SW_SYSRESETREQ)
and
session.options[‘reset_type’] = ‘system’
target.reset()
One of them actually hangs indefinitely.
So for now, I’m doing this:
result = subprocess.run([“pyocd”, “commander”, “-x”, “reset.cmd”, “-t”, “nrf91”], capture_output=True, text=True)
Which is working.
Would be nice to keep this with the API, consistent with all the other interactions with the device.
Jim