Hi,
I have somehow activated readback protection on a custom nRF9160 device and I can't seem to recover it via the usual method with nrfjprog.
Running "nrfjprog --recover" gives:
nrfjprog --recover ERROR: nrfjprog could not identify the target device. This may be due to an ERROR: invalid family argument, a problem with your device, or nrfjprog may ERROR: not yet support your device. ERROR: Please check the family argument passed, or upgrade nrfjprog to a more ERROR: recent version.
Trying with -f NRF91 gives:
nrfjprog --recover -f NRF91 Recovering device. This operation might take 30s. ERROR: Recover failed. Please make sure that the correct device family is given ERROR: and try again.
Am I missing something here in order to get recovery to work?
JLinkExe SEGGER J-Link Commander V6.86f (Compiled Oct 23 2020 17:50:24) DLL version V6.86f, compiled Oct 23 2020 17:50:09 Connecting to J-Link via USB...O.K. Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01 Hardware version: V1.00 S/N: 960004275 License(s): RDI, FlashBP, FlashDL, JFlash, GDB VTref=3.300V Type "connect" to establish a target connection, '?' for help J-Link>connect Please specify device / core. <Default>: CORTEX-M4 Type '?' for selection dialog Device>CORTEX-M33 Please specify target interface: J) JTAG (Default) S) SWD T) cJTAG TIF>S Specify target interface speed [kHz]. <Default>: 4000 kHz Speed>9600 Device "CORTEX-M33" selected. Connecting to target via SWD Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 Scanning AP map to find all available APs AP[7]: Stopped AP scan as end of AP map has been reached AP[0]: AHB-AP (IDR: 0x84770001) AP[1]: AHB-AP (IDR: 0x24770011) AP[2]: JTAG-AP (IDR: 0x12880000) AP[3]: APB-AP (IDR: 0x54770002) AP[4]: JTAG-AP (IDR: 0x12880000) AP[5]: JTAG-AP (IDR: 0x12880000) AP[6]: MEM-AP (IDR: 0x128800A1) Iterating through AP map to find AHB-AP to use AP[0]: Skipped. Could not read CPUID register AP[1]: Skipped. Could not read CPUID register AP[2]: Skipped. Not an AHB-AP AP[3]: Skipped. Not an AHB-AP AP[4]: Skipped. Not an AHB-AP AP[5]: Skipped. Not an AHB-AP AP[6]: Skipped. Not an AHB-AP Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 Scanning AP map to find all available APs AP[7]: Stopped AP scan as end of AP map has been reached AP[0]: AHB-AP (IDR: 0x84770001) AP[1]: AHB-AP (IDR: 0x24770011) AP[2]: JTAG-AP (IDR: 0x12880000) AP[3]: APB-AP (IDR: 0x54770002) AP[4]: JTAG-AP (IDR: 0x12880000) AP[5]: JTAG-AP (IDR: 0x12880000) AP[6]: MEM-AP (IDR: 0x128800A1) Iterating through AP map to find AHB-AP to use AP[0]: Skipped. Could not read CPUID register AP[1]: Skipped. Could not read CPUID register AP[2]: Skipped. Not an AHB-AP AP[3]: Skipped. Not an AHB-AP AP[4]: Skipped. Not an AHB-AP AP[5]: Skipped. Not an AHB-AP AP[6]: Skipped. Not an AHB-AP ****** Error: Could not find core in Coresight setup Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 Scanning AP map to find all available APs AP[7]: Stopped AP scan as end of AP map has been reached AP[0]: AHB-AP (IDR: 0x84770001) AP[1]: AHB-AP (IDR: 0x24770011) AP[2]: JTAG-AP (IDR: 0x12880000) AP[3]: APB-AP (IDR: 0x54770002) AP[4]: JTAG-AP (IDR: 0x12880000) AP[5]: JTAG-AP (IDR: 0x12880000) AP[6]: MEM-AP (IDR: 0x128800A1) Iterating through AP map to find AHB-AP to use AP[0]: Skipped. Could not read CPUID register AP[1]: Skipped. Could not read CPUID register AP[2]: Skipped. Not an AHB-AP AP[3]: Skipped. Not an AHB-AP AP[4]: Skipped. Not an AHB-AP AP[5]: Skipped. Not an AHB-AP AP[6]: Skipped. Not an AHB-AP Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 Scanning AP map to find all available APs AP[7]: Stopped AP scan as end of AP map has been reached AP[0]: AHB-AP (IDR: 0x84770001) AP[1]: AHB-AP (IDR: 0x24770011) AP[2]: JTAG-AP (IDR: 0x12880000) AP[3]: APB-AP (IDR: 0x54770002) AP[4]: JTAG-AP (IDR: 0x12880000) AP[5]: JTAG-AP (IDR: 0x12880000) AP[6]: MEM-AP (IDR: 0x128800A1) Iterating through AP map to find AHB-AP to use AP[0]: Skipped. Could not read CPUID register AP[1]: Skipped. Could not read CPUID register AP[2]: Skipped. Not an AHB-AP AP[3]: Skipped. Not an AHB-AP AP[4]: Skipped. Not an AHB-AP AP[5]: Skipped. Not an AHB-AP AP[6]: Skipped. Not an AHB-AP ****** Error: Could not find core in Coresight setup Cannot connect to target.
nrfjprog -e -f NRF91 ERROR: The operation attempted is unavailable due to readback protection in ERROR: your device. Please use --recover to unlock the device.
