Device Recovery
When using probe-rs
or pyocd
you may run into an issue like this one:
probe-rs download –chip nRF9160_xxAA –binary-format hex build_feather_nrf9151_ns/merged.hex –allow-erase-all
WARN probe_rs::vendor::nordicsemi::sequences::nrf: Core 0 is locked. Erase procedure will be started to unlock it.
WARN probe_rs::architecture::arm::core::armv8m: The core is in locked up status as a result of an unrecoverable exception
Erasing ✔ 100% [####################] 424.00 KiB @ 38.40 KiB/s (took 11s)
Programming ✔ 100% [####################] 424.00 KiB @ 38.78 KiB/s (took 11s) Finished in 21.98s
Any error that refers to a locked core, indicates the device is in a bad state. Unfortunately, the erase/recovery proceedure in probe-rs
is not working for the nRF9151 Feather. For now, you can use the recovery
program to perform the erase/recovery procedure.
Installing recovery
The recovery
program is available for Linux, and Windows:
Running recovery
To run recovery
simply run the following command:
recovery
You should see the following output:
$ recovery
Got probe!
Unlocked device!