This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NOT_AVAILABLE_BECAUSE_PROTECTION, jlink fails, nRF Connect for desktop fails

I keep seeing NOT_AVAILABLE_BECAUSE_PROTECTION errors on all sub-programs of nRF Connect when attempting to program the associated firmware (RSSI viewer, Bluetooth Low Energy, Programmer, etc). J-Link command line keeps flagging the part as protected every time I connect to it:

nrfjprog gives:

C:\windows\system32>nrfjprog --family nrf52 --recover
Recovering device. This operation might take 30s.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.

C:\windows\system32>nrfjprog -v
nrfjprog version: 10.12.1
JLinkARM.dll version: 6.90

I can only program the part through dropping a hex file on the JLINK drive or through nRF Connect SDK version of SES.

Part = nRF52840

nRF Connect for Desktop v3.6.1

How can I use any of the nRF Connect for Desktop apps?

Thanks,

Bob

  • Hi Bob

    Seeing as you're able to program it using SES, this seems to be due to the J-Link version you're using. The latest J-Link version that nRFConnect supports is J-Link Software version 6.88. I see that you use v6.90, which is not tested with, and therefore likely to not be compatible with, nRFConnect. Please try downgrading your J-Link software to see if that solves this issue for you.

    Best regards,

    Simon

  • Hi Simon,

    I uninstalled J-Link, nRF Command Line Tools, and nRF Connect for desktop, then rebooted.

    I installed nRF Command Line Tools and nRF Connect for Desktop, and still see issues with J-Link v6.88a -- which was installed by the command line tools:

    C:\windows\system32>nrfjprog -f nrf52 --version
    nrfjprog version: 10.12.1
    JLinkARM.dll version: 6.88a

    C:\windows\system32>nrfjprog -f nrf52 --recover
    Recovering device. This operation might take 30s.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.

    C:\windows\system32>

    I tried erasing through SES -- the version installed with NCS. That appeared to work but I still see the same with nrfjprog.

    Thanks,

    Bob

  • After downgrading, I can successfully program a board that I did not use with J-Link v6.90. Boards that were used with v6.90 always show the recover failed, or an app protect error in nRF Connect for Desktop / Bluetooth.

  • Hi again Bob

    Please try to reinstall the interface MCU firmware on these boards that you used with J-Link v6.90. To do so, hold the reset button (SW5) while you power on the DK until LED (LD5) starts to blink. Once the DK is in bootloader mode, drag and drop the downloadable Interface MCU firmware .bin file into the bootloader folder that should have popped up on your computer. Do not drag and drop any other file here, as that may overwrite and ruin the bootloader entirely without an option of recovery.

    Best regards,

    Simon

Related