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

Developer kit failure - 10040

This board is no longer recognized by SES to program code.

 9:09:21.82 d:\> nrfjprog --recover
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.

15:02:01.55 d:\> nrfjprog --recover --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.

[2021-Jun-02 17:38:11] [ info] --------------------------------------------------------------------------------
[2021-Jun-02 17:38:11] [ info] nrfjprog --recover --log 
[2021-Jun-02 17:38:11] [ info] nrfjprog version 10.12.2 
[2021-Jun-02 17:38:11] [ info] --------------------------------------------------------------------------------
[2021-Jun-02 17:38:11] [debug] [ nRF0x0] - open_dll
[2021-Jun-02 17:38:11] [ info] [ nRF0x0] - Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_UNKNOWN_NRFJPROG.dll.
[2021-Jun-02 17:38:11] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Jun-02 17:38:11] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Jun-02 17:38:11] [ info] [Backend] - Logger callback at 0x832020 registered in Segger backend logger.
[2021-Jun-02 17:38:11] [ info] [  JLink] - [Info    ] [JLink     ] Logger callback at 0x832020 registered in JLink logger.
[2021-Jun-02 17:38:11] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
[2021-Jun-02 17:38:11] [debug] [Backend] - open_dll
[2021-Jun-02 17:38:11] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Jun-02 17:38:12] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
[2021-Jun-02 17:38:12] [ info] [Backend] - Library loaded, loading member functions.
[2021-Jun-02 17:38:12] [ info] [Backend] - Member functions succesfully loaded.
[2021-Jun-02 17:38:12] [debug] [Backend] - dll_version
[2021-Jun-02 17:38:12] [ info] [Backend] - Segger dll version 6.88.a loaded.
[2021-Jun-02 17:38:12] [debug] [Backend] - set_core_data
[2021-Jun-02 17:38:12] [debug] [ nRF0x0] - enum_emu_snr
[2021-Jun-02 17:38:12] [debug] [nRFUnknown] - Just_enum_emu_snr
[2021-Jun-02 17:38:12] [debug] [Backend] - enum_emu_snr
[2021-Jun-02 17:38:12] [debug] [Backend] - ---just_enum_emu_snr
[2021-Jun-02 17:38:12] [debug] [Backend] - ---just_get_num_emus
[2021-Jun-02 17:38:12] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Jun-02 17:38:12] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
[2021-Jun-02 17:38:12] [debug] [Backend] - connect_to_emu_with_snr
[2021-Jun-02 17:38:12] [debug] [Backend] - is_connected_to_emu
[2021-Jun-02 17:38:12] [debug] [Backend] - ---just_enum_emu_snr
[2021-Jun-02 17:38:12] [debug] [Backend] - ---just_get_num_emus
[2021-Jun-02 17:38:12] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Jun-02 17:38:12] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Jun-02 17:38:12] [ info] [Backend] - Segger logging enabled.
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] Hardware: V1.00
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] S/N: 682712031
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] OEM: SEGGER
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] TELNET listener socket opened on port 19021
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] WEBSRV Starting webserver
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] WEBSRV Webserver running on local port 19080
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 25.635ms returns "O.K."  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_GetHWStatus(...)  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 1.214ms returns 0  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 0.011ms returns 0x01  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("DisableFlashDL", ...).   
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 0.009ms returns 0x00  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 0.005ms returns 0x00  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetHookUnsecureDialog  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetHookUnsecureDialog(...)
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 0.034ms returns 0  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_TIF_Select(JLINKARM_TIF_SWD)  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 4.058ms returns 0x00  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetSpeed(2000)  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 0.687ms  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_GetSN()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 0.012ms returns 682712031  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [debug] [Backend] - ---just_load_core_data
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] - 0.008ms returns 0x00  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("device = Cortex-M4", ...).   
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml 
[2021-Jun-02 17:38:12] [ info] [  JLink] - [Info    ] [JLink     ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully. 
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] Device "CORTEX-M4" selected.
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] Device "CORTEX-M4" selected.
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] - 2569.645ms returns 0x00  
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:14] [debug] [ nRF0x0] - read_connected_emu_snr
[2021-Jun-02 17:38:14] [debug] [nRFUnknown] - Just_read_connected_emu_snr
[2021-Jun-02 17:38:14] [debug] [Backend] - read_connected_emu_snr
[2021-Jun-02 17:38:14] [debug] [Backend] - is_connected_to_emu
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] - 0.032ms returns 0x01  
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:14] [debug] [ nRF0x0] - read_device_family
[2021-Jun-02 17:38:14] [debug] [nRFUnknown] - Just_read_device_family
[2021-Jun-02 17:38:14] [debug] [Backend] - is_connected_to_emu
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] - 0.011ms returns 0x01  
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Lock()  
[2021-Jun-02 17:38:14] [debug] [Backend] - read_debug_port_idr
[2021-Jun-02 17:38:14] [debug] [Backend] - read_debug_port_register
[2021-Jun-02 17:38:14] [debug] [Backend] - ---just_read_debug_port_register
[2021-Jun-02 17:38:14] [debug] [Backend] - coresight_configure
[2021-Jun-02 17:38:14] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_Configure()  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 102.092ms returns 0  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [debug] [Backend] - ---just_select_debug_port_register
[2021-Jun-02 17:38:15] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 1.680ms returns -1  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jun-02 17:38:15] [debug] [Backend] - ---just_abort_debug_action
[2021-Jun-02 17:38:15] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 1.626ms returns -1  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 0.037ms  
[2021-Jun-02 17:38:15] [debug] [ nRF0x0] - close_dll
[2021-Jun-02 17:38:15] [debug] [nRFUnknown] - Just_close_dll
[2021-Jun-02 17:38:15] [debug] [Backend] - close
[2021-Jun-02 17:38:15] [debug] [Backend] - disconnect_from_emu
[2021-Jun-02 17:38:15] [debug] [Backend] - is_connected_to_emu
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 0.011ms returns 0x01  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [debug] [Backend] - ---just_disconnect_from_emu
[2021-Jun-02 17:38:15] [debug] [Backend] - is_connected_to_device
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsConnected()  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 0.012ms returns FALSE  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [debug] [Backend] - ---just_is_debug_region_powered
[2021-Jun-02 17:38:15] [debug] [Backend] - ---just_read_debug_port_register
[2021-Jun-02 17:38:15] [debug] [Backend] - is_connected_to_emu
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 0.010ms returns 0x01  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Lock()  
[2021-Jun-02 17:38:15] [debug] [Backend] - ---just_select_debug_port_register
[2021-Jun-02 17:38:15] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 1.554ms returns -1  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jun-02 17:38:15] [debug] [Backend] - ---just_abort_debug_action
[2021-Jun-02 17:38:15] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 1.670ms returns -1  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jun-02 17:38:15] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] - 0.033ms  
[2021-Jun-02 17:38:15] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Close()  
[2021-Jun-02 17:38:15] [debug] [Backend] - Segger Backend closed.

  • At the moment, Win7, because Win10 won't run some mission-critical apps on my main work machine. I wasted a week trying to downgrade to Win10 and gave up, although I still have the hard drives online for that. I can move to a Win10 laptop for testing, and in fact already tried that. Your tools in general don't fail very gracefully when there's a problem with which OS I'm using. I'll go give another try on Win10; meanwhile, I've got to have tools that reliably allow me to get real work done.

  • You can close out this ticket. David Martin worked with me and we got it resolved. Apparently something like the "programmer proximity sensor", it just started working while I was on the call with him.

    I'll doubtless be back.....thank you for the help.

Related