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.