Failed to Connect Target

I procurred two NRF52DK boards and in both the boards I am facing the similar issue of "Failed to Connect the Target".  When I am running the nrfutil device recover command, it showing follwing error:
x Failed to recover 1050389761, Emulator error: Failed to open connection
Error: One or more recover tasks failed:
* 1050389761: Emulator error: Failed to open connection (Generic)

also when running nrfjprog --recover -f nrf52 command
it is shwoing the following error:
"Recovering device. This operation might take 30s.
[error] [ Worker] - Encountered error while performing post-recover cleanup. -90: Access protection is enabled, can't read device version.
[error] [ Client] - Encountered error -21: Command recover executed for 30178 milliseconds with result -21
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again."


I am not able to use these boards at all and sort of struck at this and have been wasting my time for the last one week trying every bit of commands provided to recover the device but have no success at all so far.

Parents Reply
  • I can't add to my post above.  Very rarely is the hardware at fault and its very rare that I am the only person facing an issue - usually that points to a mistake on my part.  Yours was the only post that showed up on Google for this problem which would normally mean that we've missed something obvious. I needed to get a BLE sniffer working yesterday and so out of desparation I used the Segger JFlash tool to fully erase my dev. board. That using the JFlash tool fixed the problem suggests that we are not doing anything wrong.  It is possible, that as Nordic are suggesting, there was a random/watchdog timing issue but in my case JFlash just connected and worked first time. 

    My board is an nRF52840-DK, PCA10056/ 3.0.2/ 2024.34/ 1050212472

    Good luck.

Children
Related