nrfjprog fails on mac 12.5.1 (monterey)

I was using nrfjprog successfully about a year ago before this evaluation was suspended.  When I now try it fails.

```

nrfjprog --log --program build/zephyr/merged.hex --sectorerase -f NRF91

ERROR: JLinkARM DLL reported an error.

```

I have re-installed nrfjproj but that does not help.  nrfjprog version now 10.12.0

Log file attached. This includes: 

JLinkARM.dll reported "-1", an unknown error.

Any advice appreciated.

Parents Reply Children
  • Thanks for that  

    Yes.  Although I downloaded the latest installer package, I got an older version when I ran it .  I need to fix the simlink in /usr/local/bin.

    However, try as I may I cannot locate where the installer has placed the updated version.

    I went back to the Nordic page where the download link is given.  Nothing on the precise destination other than allowing a choice of destination drive.

    I'm reluctant to delete all versions in case I break something else.

    Anyone know where the newly installed executable can be found?

  • paul_tanner said:
    Anyone know where the newly installed executable can be found?

    According to the document here

    After running the installer, the nRF Command Line Tools are ready for use. By default, they are installed in the following directories:

    • On Windows (64-bit): C:/Program Files/Nordic Semiconductor/nrf-command-line-tools/bin/
    • On Windows (32-bit): C:/Program Files (x86)/Nordic Semiconductor/nrf-command-line-tools/bin/
    • On Linux: /opt/
    • On macOS: /Applications/Nordic Semiconductor/
  • Thx. That was very helpful.

    We are now trying to flash with nrfjprog version 10.17.3 external

    First errors are:

    ```

    [debug]: [SeggerBackend] - ---just_select_debug_port_register

    [debug]: [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255

    [trace]: [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)

    [trace]: [  JLink] - - 0.473ms returns -1

    [trace]: [  JLink] - JLINK_HasError()

    [error]: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

    ```

    Turns out that this was a possible problem with the SoC.  With another one it seemed to go OK.

    As to the error message that's not very helpful.

  • paul_tanner said:

    Turns out that this was a possible problem with the SoC.  With another one it seemed to go OK.

    Ok, so you are just seeing this on one board. Is it a custom board or a DK ?

  • Yes. A custom board. For my other boards of this type the 10.17.3 version of nrfjprog seems to be working ok.

    Thx again for your help.

Related