Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

JLinkARM DLL reported an error

Hi All,

I am beginner  for nrf52, and trying to flash my first program, i am using nRF5_SDK_14.2.0_offline_doc and JLink_Linux_V632c_x86_64.

while flashing, i am getting this error:

$ ./nrfjprog -e -f nRF52  --log
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.

here's the log.log file:

--------------------------------------------------------------------------------
./nrfjprog -e -f nRF52 --log
nrfjprog version 9.7.3
--------------------------------------------------------------------------------
nRF_open_dll
. nRF52_open_dll
. . nRF52_dll_version
nRF_enum_emu_snr
. nRF52_enum_emu_snr
. . nRF52_enum_emu_snr
nRF_enum_emu_snr
. nRF52_enum_emu_snr
. . nRF52_enum_emu_snr
nRF_connect_to_emu_with_snr
. nRF52_connect_to_emu_with_snr
. . nRF52_is_connected_to_emu
. . nRF52_enum_emu_snr
. . nRF52_connect_to_emu_with_snr
. . . nRF52_connect_to_emu_without_snr
. . . nRF52_connect_to_emu_without_snr:    JLink:     Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 12 2018 16:05:20
. . . nRF52_connect_to_emu_without_snr:    JLink:     Hardware: V1.00
. . . nRF52_connect_to_emu_without_snr:    JLink:     S/N: 682860947
. . . nRF52_connect_to_emu_without_snr:    JLink:     TELNET listener socket opened on port 19021
. . . nRF52_connect_to_emu_without_snr:    JLink:    WEBSRV  Starting webserver
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0004ms, 0288ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:286
. . . nRF52_connect_to_emu_without_snr:    JLink:    WEBSRV Webserver running on local port 19080
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0004ms, 0288ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:286
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns O.K.
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0004ms, 0288ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:290
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_GetHWStatus(...)
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns 0x00
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0001ms, 0289ms total)  
. . . nRF52_connect_to_emu_without_snr:    There is no generic nRF52 device in J-Link, so we select NRF52832_xxAA.

. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:291
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_ExecCommand("Device = NRF52832_xxAA", ...).
. . . nRF52_connect_to_emu_without_snr:    JLink:    XML file found at: /opt/SEGGER/JLink/JLinkDevices.xml
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0243ms, 0532ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:291
. . . nRF52_connect_to_emu_without_snr:    JLink:    /opt/SEGGER/JLink/JLinkDevices.xml evaluated successfully.
. . . nRF52_connect_to_emu_without_snr:    JLink:    Device "NRF52832_XXAA" selected.
. . . nRF52_connect_to_emu_without_snr:    JLink:    Device "NRF52832_XXAA" selected.
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns 0x00
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0281ms, 0570ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:572
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_ExecCommand("SetRestartOnClose = 0", ...).
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns 0x01
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0000ms, 0570ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:572
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_ExecCommand("DisableFlashDL", ...).
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns 0x00
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0000ms, 0571ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:573
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_ExecCommand("SetDbgPowerDownOnClose = 1", ...).
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns 0x01
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0000ms, 0571ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:573
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns 0x00
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0000ms, 0571ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:573
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_TIF_Select(JLINKARM_TIF_SWD)
. . . nRF52_connect_to_emu_without_snr:    JLink:      returns 0x00
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0001ms, 0572ms total)  
. . . nRF52_connect_to_emu_without_snr:    JLink:    TDE17F740 000:574
. . . nRF52_connect_to_emu_without_snr:    JLink:    JLINK_SetSpeed(2000)
. . . nRF52_connect_to_emu_without_snr:    JLink:     (0000ms, 0572ms total)  
nRF_read_device_version
. nRF52_read_device_version
. . nRF52_is_connected_to_emu
. . nRF52_is_connected_to_emu:    JLink:    TDE17F740 000:574
. . nRF52_is_connected_to_emu:    JLink:    JLINK_IsOpen()
. . nRF52_is_connected_to_emu:    JLink:      returns 0x01
. . nRF52_is_connected_to_emu:    JLink:     (0000ms, 0572ms total)  
. . nRF52_is_connected_to_device
. . nRF52_is_connected_to_device:    JLink:    TDE17F740 000:574
. . nRF52_is_connected_to_device:    JLink:    JLINK_IsConnected()
. . nRF52_is_connected_to_device:    JLink:      returns FALSE
. . nRF52_is_connected_to_device:    JLink:     (0000ms, 0572ms total)  
. . nRF52_readback_status
. . . nRF52_is_ctrl_ap_available
. . . . nRF52_read_access_port_register
. . . . . nRF52_coresight_configure
. . . . . nRF52_coresight_configure:    JLink:    TDE17F740 000:574
. . . . . nRF52_coresight_configure:    JLink:    JLINK_CORESIGHT_Configure()
. . . . . nRF52_coresight_configure:    JLink:      returns 0
. . . . . nRF52_coresight_configure:    JLink:     (0102ms, 0674ms total)  
. . . . . nRF52_power_debug_and_system_regions
. . . . . . nRF52_write_debug_port_register
. . . . . . nRF52_write_debug_port_register:    JLink:    TDE17F740 000:677
. . . . . . nRF52_write_debug_port_register:    JLink:    JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
. . . . . . nRF52_write_debug_port_register:    JLink:      returns -1
. . . . . . nRF52_write_debug_port_register:    JLink:     (0002ms, 0676ms total)  
. . . . . . nRF52_write_debug_port_register:    JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

. . . . . nRF52_power_debug_and_system_regions:    JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.

nRF_close_dll
. nRF52_close_dll
. . nRF52_is_connected_to_emu
. . nRF52_is_connected_to_emu:    JLink:    TDE17F740 000:681
. . nRF52_is_connected_to_emu:    JLink:    JLINK_IsOpen()
. . nRF52_is_connected_to_emu:    JLink:      returns 0x01
. . nRF52_is_connected_to_emu:    JLink:     (0000ms, 0676ms total)  
. . nRF52_disconnect_from_emu
. . . nRF52_is_connected_to_device
. . . nRF52_is_connected_to_device:    JLink:    TDE17F740 000:682
. . . nRF52_is_connected_to_device:    JLink:    JLINK_IsConnected()
. . . nRF52_is_connected_to_device:    JLink:      returns FALSE
. . . nRF52_is_connected_to_device:    JLink:     (0001ms, 0678ms total)  
. . . nRF52_unpower_debug_and_system_regions
. . nRF52_disconnect_from_emu:    JLink:    TDE17F740 000:686
. . nRF52_disconnect_from_emu:    JLink:    JLINK_Close()

Please do suggest me the solution for it.

Thanks,

Amarjeet

Parents Reply Children
  • Does that mean you do not see anything with the command "nrfjprog -i". Can you see the JLINK drive in File Explorer when you attach the jlink to your computer? You might need to reupload the JLINK Firmware to the nrf52 dk. You can do that by downloading this file (choose the newest one), turn off the dev kit while it is hooked up to the pc, hold in the IF BOOT RESET button while turning on the dev kit & the kit should appear in bootloader mode in file explorer. Then, you can drag & drop the file you downloaded to the BOOTLOADER folder. This will reset the Interface MCU firmware. Then, power cycle the dev kit again & everything should work like normal.

Related