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

GetSN returned error "-1" in nrfjprog

Good day,

I have a problem with connecting to nRF51822 via nrfjprog with error (nrfjprog.exe --recover --log ):
nrfjprog.exe --recover --log nrfjprog verion 9.0.0 FUNCTION: open_dll. FUNCTION: open_dll. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: connect_to_emu_with_snr. FUNCTION: connect_to_emu_with_snr. FUNCTION: connect_to_emu_without_snr. FUNCTION: enum_emu_snr. Device "NRF51822_XXAA" selected. JLinkARM.dll GetSN returned error '-1'. FUNCTION: close_dll. FUNCTION: close_dll.

But if I am using the IAR or JFlash I don`t have any problems with connecting and flashing the chip

Parents
  • It sound like your Chinese copy might not work with the official SEGGER tools. I’m not sure what we can do about that. One last option is to try the J-Link Commander (JLink.Exe) directly. If that doesn’t work, you will have to get in touch with the manufacturer of your J-Link emulator, or contact SEGGER and ask why they do not support that version of the debugger.

Reply
  • It sound like your Chinese copy might not work with the official SEGGER tools. I’m not sure what we can do about that. One last option is to try the J-Link Commander (JLink.Exe) directly. If that doesn’t work, you will have to get in touch with the manufacturer of your J-Link emulator, or contact SEGGER and ask why they do not support that version of the debugger.

Children
Related