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

    Which versions of the tools (nrfjprog, nrfutil, nrfutil device) do you use?

    Best regards,
    Dejan

  • Hi,
    I am using the folliwng versions:
    nrfutil --version: 
    nrfutil 8.0.0 (54d8087 2025-01-07)
    nrfutil device --version: nrfutil-device 2.11.0 (5778cc4 2025-05-15)

    nrfjprog --version: 10.24.2 external
    JLinkARM.dll version 7.66b

    Regards

  • Hi,

    Are you able to erase your devices using nrfutil and nrfjprog?

    Best regards,
    Dejan

  • This is what i get whenever I run the erase via nrfutil command


    nrfutil device erase

    x Failed to erase 1050389761, Failed to attach to target: The Application core access port is protected (All)
    Error: One or more erase tasks failed:
    * 1050389761: Failed to attach to target: The Application core access port is protected (All) (NotAvailableBecauseProtection)


    The operation was unavailable for some of the devices because they had readback protection enabled. These devices might be possible to unlock using the `recover` subcommand. See `nrfutil device recover --help` for more information.



    and I encouter the same ap-protection issue when I execute nrjprog --eraseall command 

    nrfjprog --eraseall
    [error] [ Worker] - Access protection is enabled, can't read device version.
    [error] [ Client] - Encountered error -90: Command read_device_info executed for 14 milliseconds with result -90
    [error] [ Client] - Encountered error -90: Command read_memory_descriptors executed for 12 milliseconds with result -90
    [error] [ Worker] - Can't read memory descriptors, ap-protection is enabled.
    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    Thanks

  • Hi,

    Which versions of nrf52-dk boards do you use?

    Best regards,
    Dejan

Reply Children
Related