- I use custom board for nRF52832
- I connected it with JLink, and installed SD132 with nRFgo Studio (successfully)
- after then, I cannot connect to chip
I attach the log file of result of "nrfjprog -e --log"
I attach the log file of result of "nrfjprog -e --log"
I had this exact error recently, and the problem was that I was powering the JLINK via USB, but the power to the nRF52832 chip was OFF. Everything worked fine once I flipped the switch and supplied 3.3 V to the chip!
2019-Mar-28 12:46:32 --------------------------------------------------------------------------------
2019-Mar-28 12:46:32 ./nrfjprog --reset -f nrf52 --log
2019-Mar-28 12:46:32 nrfjprog version 9.8.1
2019-Mar-28 12:46:32 --------------------------------------------------------------------------------
2019-Mar-28 12:46:32 nRF_open_dll
2019-Mar-28 12:46:32 . nRF52_open_dll
2019-Mar-28 12:46:32 . . nRF52_dll_version
2019-Mar-28 12:46:32 nRF_enum_emu_snr
2019-Mar-28 12:46:32 . nRF52_enum_emu_snr
2019-Mar-28 12:46:32 . . nRF52_enum_emu_snr
2019-Mar-28 12:46:32 nRF_enum_emu_snr
2019-Mar-28 12:46:32 . nRF52_enum_emu_snr
2019-Mar-28 12:46:32 . . nRF52_enum_emu_snr
2019-Mar-28 12:46:33 nRF_connect_to_emu_with_snr
2019-Mar-28 12:46:33 . nRF52_connect_to_emu_with_snr
2019-Mar-28 12:46:33 . . nRF52_is_connected_to_emu
2019-Mar-28 12:46:33 . . nRF52_enum_emu_snr
2019-Mar-28 12:46:33 . . nRF52_connect_to_emu_with_snr
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Hardware: V8.00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TELNET listener socket opened on port 19021
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: WEBSRV Starting webserver
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0066ms, 0861ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:797
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: WEBSRV Webserver running on local port 19080
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0066ms, 0861ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:797
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns O.K.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0067ms, 0862ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:864
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_GetHWStatus(...)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0003ms, 0865ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: There is no generic nRF52 device in J-Link, so we select NRF52832_xxAA.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:867
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("Device = NRF52832_xxAA", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: XML file found at: /opt/SEGGER/JLink/JLinkDevices.xml
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0001ms, 0866ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:867
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: /opt/SEGGER/JLink/JLinkDevices.xml evaluated successfully.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Device "NRF52832_XXAA" selected.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Device "NRF52832_XXAA" selected.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0047ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("SetRestartOnClose = 0", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x01
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("DisableFlashDL", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("SetDbgPowerDownOnClose = 1", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x01
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_TIF_Select(JLINKARM_TIF_SWD)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0013ms, 0925ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:927
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_SetSpeed(2000)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0003ms, 0928ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLinkARM.dll GetSN returned error '-1.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:939
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_Close()
2019-Mar-28 12:46:33 nRF_close_dll
2019-Mar-28 12:46:33 . nRF52_close_dll
2019-Mar-28 12:46:33 . . nRF52_is_connected_to_emu
Hi
I am having the same problem on NRF52840 (u-blox nina b3), but i am using a LINUX VM.
On WINDOWS works fine!
osboxes@osboxes:~/nrfjprog$ sudo ./nrfjprog --family nrf52 --eraseall
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
osboxes@osboxes:~/nrfjprog$
2019-Mar-28 12:46:32 --------------------------------------------------------------------------------
2019-Mar-28 12:46:32 ./nrfjprog --reset -f nrf52 --log
2019-Mar-28 12:46:32 nrfjprog version 9.8.1
2019-Mar-28 12:46:32 --------------------------------------------------------------------------------
2019-Mar-28 12:46:32 nRF_open_dll
2019-Mar-28 12:46:32 . nRF52_open_dll
2019-Mar-28 12:46:32 . . nRF52_dll_version
2019-Mar-28 12:46:32 nRF_enum_emu_snr
2019-Mar-28 12:46:32 . nRF52_enum_emu_snr
2019-Mar-28 12:46:32 . . nRF52_enum_emu_snr
2019-Mar-28 12:46:32 nRF_enum_emu_snr
2019-Mar-28 12:46:32 . nRF52_enum_emu_snr
2019-Mar-28 12:46:32 . . nRF52_enum_emu_snr
2019-Mar-28 12:46:33 nRF_connect_to_emu_with_snr
2019-Mar-28 12:46:33 . nRF52_connect_to_emu_with_snr
2019-Mar-28 12:46:33 . . nRF52_is_connected_to_emu
2019-Mar-28 12:46:33 . . nRF52_enum_emu_snr
2019-Mar-28 12:46:33 . . nRF52_connect_to_emu_with_snr
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Hardware: V8.00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TELNET listener socket opened on port 19021
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: WEBSRV Starting webserver
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0066ms, 0861ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:797
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: WEBSRV Webserver running on local port 19080
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0066ms, 0861ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:797
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns O.K.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0067ms, 0862ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:864
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_GetHWStatus(...)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0003ms, 0865ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: There is no generic nRF52 device in J-Link, so we select NRF52832_xxAA.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:867
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("Device = NRF52832_xxAA", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: XML file found at: /opt/SEGGER/JLink/JLinkDevices.xml
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0001ms, 0866ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:867
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: /opt/SEGGER/JLink/JLinkDevices.xml evaluated successfully.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Device "NRF52832_XXAA" selected.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: Device "NRF52832_XXAA" selected.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0047ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("SetRestartOnClose = 0", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x01
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("DisableFlashDL", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("SetDbgPowerDownOnClose = 1", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x01
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0000ms, 0912ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:914
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_TIF_Select(JLINKARM_TIF_SWD)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: returns 0x00
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0013ms, 0925ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:927
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_SetSpeed(2000)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: (0003ms, 0928ms total)
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLinkARM.dll GetSN returned error '-1.
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: TB2457740 000:939
2019-Mar-28 12:46:33 . . . nRF52_connect_to_emu_without_snr: JLink: JLINK_Close()
2019-Mar-28 12:46:33 nRF_close_dll
2019-Mar-28 12:46:33 . nRF52_close_dll
2019-Mar-28 12:46:33 . . nRF52_is_connected_to_emu
Hi
I am having the same problem on NRF52840 (u-blox nina b3), but i am using a LINUX VM.
On WINDOWS works fine!
osboxes@osboxes:~/nrfjprog$ sudo ./nrfjprog --family nrf52 --eraseall
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
osboxes@osboxes:~/nrfjprog$
Which version of the J-Link drivers are you running? Is this a genuine J-Link device? From other DevZone posts it seems that you can get this error when using Chinese copies.