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
  • Hi,

    Sahil Anchal said:
    To understand better: is it possible that AP protection was enabled accidentally through example code or SDK usage?

    Enabled AP protection should not be the issue here. "Erase all" removes AP and (in case of nrf52832) "erase all" should always be possible. The only way that could prevent "erase all" from working is shown in previously mentioned errata.

    Could you describe and/or show in more detail what you had done before this problem happened?

    Best regards,
    Dejan

Children
Related