This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error with nrfjprog

Hi,

When I want use nrfjprog to program my NRF52, I have a problem.

This why I write to program my nerf : nrfjprog -f nrf52 --program _build/astronaut.hex --sectorerase --log

But I have this error :

ERROR: [SeggerBackend] - The J-Link library does not support execution inside rosetta 2. Try executing with arch -arch arm64 nrfjprog...

ERROR: An internal error has occurred, please try again.

I try with NRF Connect and that work correctly, I have the impression that nrfjprog is not using the right JLink. 

Can you please help me.

Parents Reply Children
  • Can you tepy "nrfjprog -v" and post the version? Need to know the reply version which includes J-Link version. 

    -Amanda

  • When I type nrfjprog -v, I have this error message : 

    ERROR: An internal error has occurred, please try again.

    NOTE: For additional output, try running again with logging enabled (--log).

    NOTE: Any generated log error messages will be displayed.

  • I forgot to mention but I'm on Apple M1 I don't know if it changes anything or not.

  • See the answer from Dee in this post

    -Amanda

  • Thank you for sharing me this post. 

    But when I try the same I command I have always an error : 

    arch -arch arm64 nrfjprog -v --log       

    ERROR: [SeggerBackend] - Dll failed to open.

    ERROR: JLinkARM DLL load failed. Try again. If it keeps failing, please

    ERROR: reinstall latest JLinkARM from Segger webpage.

     

    I need to reinstall something ?