Hello,
I'm in a developing stage with the nrf52840 and today I got this error after trying to ensure the "--erase all" command from the nRF Connect software.
I know that this is a well-known issue, so I've already tried everything that I could and nothing seems to solve the issue.
Worths to mention, that I was able to flash it numerous times using the nrfjprog. Now, after attempting to flash it using the nRF connect software it does not work anymore.
Running the nrfjprog --recover --log gives:
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-Oct-11 09:22:10] [ info] -------------------------------------------------------------------------------- [2021-Oct-11 09:22:10] [ info] nrfjprog --recover --log [2021-Oct-11 09:22:10] [ info] nrfjprog version 10.12.1 [2021-Oct-11 09:22:10] [ info] -------------------------------------------------------------------------------- [2021-Oct-11 09:22:10] [debug] [ nRF0x0] - open_dll [2021-Oct-11 09:22:10] [ info] [ nRF0x0] - Load library at /opt/nrfjprog/libjlinkarm_unknown_nrfjprogdll.so. [2021-Oct-11 09:22:10] [ info] [ nRF0x0] - Library loaded, loading member functions. [2021-Oct-11 09:22:10] [ info] [ nRF0x0] - Member functions succesfully loaded. [2021-Oct-11 09:22:10] [ info] [Backend] - Logger callback at 0x55820662e130 registered in Segger backend logger. [2021-Oct-11 09:22:10] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x55820662e130 registered in JLink logger. [2021-Oct-11 09:22:10] [debug] [nRFUnknown] - Just_open_dll_tagged_callback [2021-Oct-11 09:22:10] [debug] [Backend] - open_dll [2021-Oct-11 09:22:10] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect. [2021-Oct-11 09:22:10] [ info] [Backend] - Load library at /opt/SEGGER/JLink/libjlinkarm.so. [2021-Oct-11 09:22:10] [ info] [Backend] - Library loaded, loading member functions. [2021-Oct-11 09:22:10] [ info] [Backend] - Member functions succesfully loaded. [2021-Oct-11 09:22:10] [debug] [Backend] - dll_version [2021-Oct-11 09:22:10] [ info] [Backend] - Segger dll version 6.88.a loaded. [2021-Oct-11 09:22:10] [debug] [Backend] - set_core_data [2021-Oct-11 09:22:10] [debug] [ nRF0x0] - enum_emu_snr [2021-Oct-11 09:22:10] [debug] [nRFUnknown] - Just_enum_emu_snr [2021-Oct-11 09:22:10] [debug] [Backend] - enum_emu_snr [2021-Oct-11 09:22:10] [debug] [Backend] - ---just_enum_emu_snr [2021-Oct-11 09:22:10] [debug] [Backend] - ---just_get_num_emus [2021-Oct-11 09:22:11] [debug] [ nRF0x0] - connect_to_emu_with_snr [2021-Oct-11 09:22:11] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr [2021-Oct-11 09:22:11] [debug] [Backend] - connect_to_emu_with_snr [2021-Oct-11 09:22:11] [debug] [Backend] - is_connected_to_emu [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_enum_emu_snr [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_get_num_emus [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_connect_to_emu_with_snr [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_connect_to_emu_without_snr [2021-Oct-11 09:22:11] [ info] [Backend] - Segger logging enabled. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] Hardware: V1.00 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] S/N: 681051194 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 7.945ms returns "O.K." [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.117ms returns 0 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...). [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x01 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...). [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x00 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...). [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.172ms returns 0x00 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.010ms returns 0 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.530ms returns 0x00 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.076ms [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.006ms returns 681051194 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_load_core_data [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...). [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.002ms returns 0x00 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = Cortex-M4", ...). [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] XML file found at: /opt/SEGGER/JLink/JLinkDevices.xml [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] /opt/SEGGER/JLink/JLinkDevices.xml evaluated successfully. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 20.892ms returns 0x00 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [debug] [ nRF0x0] - read_connected_emu_snr [2021-Oct-11 09:22:11] [debug] [nRFUnknown] - Just_read_connected_emu_snr [2021-Oct-11 09:22:11] [debug] [Backend] - read_connected_emu_snr [2021-Oct-11 09:22:11] [debug] [Backend] - is_connected_to_emu [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.006ms returns 0x01 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [debug] [ nRF0x0] - read_device_family [2021-Oct-11 09:22:11] [debug] [nRFUnknown] - Just_read_device_family [2021-Oct-11 09:22:11] [debug] [Backend] - is_connected_to_emu [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.006ms returns 0x01 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock() [2021-Oct-11 09:22:11] [debug] [Backend] - read_debug_port_idr [2021-Oct-11 09:22:11] [debug] [Backend] - read_debug_port_register [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_read_debug_port_register [2021-Oct-11 09:22:11] [debug] [Backend] - coresight_configure [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 100.466ms returns 0 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_select_debug_port_register [2021-Oct-11 09:22:11] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.837ms returns -1 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error. [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_abort_debug_action [2021-Oct-11 09:22:11] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.827ms returns -1 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.017ms [2021-Oct-11 09:22:11] [debug] [ nRF0x0] - close_dll [2021-Oct-11 09:22:11] [debug] [nRFUnknown] - Just_close_dll [2021-Oct-11 09:22:11] [debug] [Backend] - close [2021-Oct-11 09:22:11] [debug] [Backend] - disconnect_from_emu [2021-Oct-11 09:22:11] [debug] [Backend] - is_connected_to_emu [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.006ms returns 0x01 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_disconnect_from_emu [2021-Oct-11 09:22:11] [debug] [Backend] - is_connected_to_device [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns FALSE [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_is_debug_region_powered [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_read_debug_port_register [2021-Oct-11 09:22:11] [debug] [Backend] - is_connected_to_emu [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.015ms returns 0x01 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock() [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_select_debug_port_register [2021-Oct-11 09:22:11] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.801ms returns -1 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error. [2021-Oct-11 09:22:11] [debug] [Backend] - ---just_abort_debug_action [2021-Oct-11 09:22:11] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.762ms returns -1 [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError() [2021-Oct-11 09:22:11] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error. [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] - 0.016ms [2021-Oct-11 09:22:11] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close() [2021-Oct-11 09:22:11] [debug] [Backend] - Segger Backend closed.
What can I do to solve this? The nrf52840 is still working fine with the latest firmware flashed. The issue is that I'm unable to flash a newer one.
Thank you,
Fernando Fontes