Got stuck with the getting nrf54h20 started guide with `NotAvailableBecauseProtection` error

Following the getting nrf54h20 started guide - https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/working_with_nrf/nrf54h/ug_nrf54h20_gs.html#ug-nrf54h20-gs

I got stuck after the UICR flashing step - it seems there a readback protection. I've tried to erase the UICR but with no success. How do I continue?

~/dev/nrf54h20 » nrfutil device recover


X Failed to recover 1050855131, [jlink] RECOVER_FAILED
Error: One or more recover tasks failed:
* 1050855131: [jlink] RECOVER_FAILED, code: Nrfjlink


~/dev/nrf54h20 » nrfutil device erase --all

X Failed to erase 1050855131, [jlink] The operation is unavailable due to readback protection
Error: One or more erase tasks failed:
* 1050855131: [jlink] The operation is unavailable due to readback protection, code: 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.

nrfutil Version:  7.13.0 (8289424 2024-07-01)

Installed nrfutil tools:
* completion 1.5.0
* device 2.4.6 Work with Nordic Semiconductor devices
* nrf5sdk-tools 1.1.0 nRF5 SDK tools that were available in nRF Util 6
* toolchain-manager 0.15.0 Manage and use toolchains for nRF Connect SDK

Found 4 installed command(s)

  • Updating that I've tried to use the nrf Connect Desktop Programmer App, yet it complain as well:

    19:46:46.005 Initialising nrfutil module: device
    19:46:46.639 Using nrfutil-device core version: 7.13.0
    19:46:46.857 Using nrfutil-device version: 2.1.1
    19:46:46.857 Using nrf-device-lib version: 0.17.5
    19:46:46.857 Using nrfjprog DLL version: 10.24.0
    19:46:46.857 Using JLink version: JLink_V7.94e
    19:47:41.804 Getting serialport options from persistent store 001050855131.pc-nrfconnect-programmer
    19:47:41.806 Getting serialport options from persistent store 001050855131.pc-nrfconnect-programmer
    19:47:49.787 Error: Failed with exit code 1. Failed to device info one or more devices: * 1050855131: [jlink] UNKNOWN_DEVICE, code: Nrfjlink. Message: Operation device-info failed, [jlink] UNKNOWN_DEVICE.
    19:47:49.788 Using nrfutil device to communicate with target via JLink
    19:47:51.945 Reading readback protection status for Application core
    19:47:51.945 Reading readback protection status for Application core 0%
    19:47:51.947 Reading readback protection status for Application core 100%
    19:47:51.947 Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
    19:47:51.948 Reading readback protection status for Application core completed
    19:47:54.116 Loading core information for Application core
    19:47:54.116 Loading core information for Application core 0%
    19:47:54.120 Loading core information for Application core 100%
    19:47:54.120 Loading core information for Application core completed
    19:47:54.120 Reading memory for Application core
    19:47:54.121 Reading memory for Application core 0%
    19:47:54.973 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] NOT_AVAILABLE_BECAUSE_TRUST_ZONE, code: Nrfjlink. Message: Bath task fw-read failed, [jlink] NOT_AVAILABLE_BECAUSE_TRUST_ZONE.
    19:47:54.973 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] NOT_AVAILABLE_BECAUSE_TRUST_ZONE, code: Nrfjlink. Message: Batch task fw-read failed, [jlink] NOT_AVAILABLE_BECAUSE_TRUST_ZONE.
    19:48:33.954 Recovering Application core
    19:48:33.955 Recovering Application core 0%
    19:48:34.021 Failed "recovering application core". Error: code: 9, description: Nrfjlink, message: Batch task recover failed, [jlink] RECOVER_FAILED
    19:48:34.098 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] RECOVER_FAILED, code: Nrfjlink. Message: Batch task recover failed, [jlink] RECOVER_FAILED.
    19:48:48.268 Reading memory for Application core
    19:48:48.269 Reading memory for Application core 0%
    19:48:49.144 Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] NOT_AVAILABLE_BECAUSE_TRUST_ZONE, code: Nrfjlink. Message: Batch task fw-read failed, [jlink] NOT_AVAILABLE_BECAUSE_TRUST_ZONE
  • Updating that even when I try to reprogram with the UICR, it failed:

    ➜ Downloads nrfjprog --program /home/gbrandwine/Downloads/bicr.hex --chiperase (dev-odeaks/gbrandwine)
    [error] [ Client] - Encountered error -93: Command erase_file executed for 691 milliseconds with result -93
    [error] [haltium] - Can't check security mapping of peripheral @0x5201E000 with coprocessor APPLICATION without secure debugging available.
    [error] [haltium] - Failed while erasing device. -93: Exception encountered while enabling coprocessor
    [error] [ Worker] - Exception encountered while enabling coprocessor
    ERROR: Access to the selected address is blocked by the SPU.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

  • Hello,

    Thank you for the updated information. I will have to run this by our nRF54 team. I don't think it is supposed to behave like that. What application did you previously program into the nRF54H20? Was it the hello world application, which is explained in the guide?

    Best regards,

    Edvin

  • Hey, thanks for answering quickly.

    No programs were previously installed. I used it straight out of the box.

    I got stuck immediately after step 1:

    Successfully flashing the BICR hex

     (https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/working_with_nrf/nrf54h/ug_nrf54h20_gs.html#programming_the_bicr)

  • Can you please take a picture of what your DK looks like? I am particularly interested in what it says on the white sticker, but also the rest of the kit. I need this information to send it to our developers to check if there may be some compatibility issues. 

    Best regards,

    Edvin

Related