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

Parents
  • 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

Reply
  • 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

Children
Related