Hello ! My custom board is working fine (with the last programm I flashed into), but I can't access it with my debugger and I can't flash it again.
When I try to flash it or recover I got this error :
C:\Dev\Dunakev\all_about_dCar\ProgrammeHexCompil>nrfjprog -f NRF52 --recover --log
Recovering device. This operation might take 30s.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
The log from this issue :
--------------------------------------------------------------------------------
nrfjprog -f NRF52 --recover --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 V10 compiled Sep 4 2018 11:24:21
. . . nRF52_connect_to_emu_without_snr: JLink: Hardware: V10.10
. . . nRF52_connect_to_emu_without_snr: JLink: S/N: 260100542
. . . nRF52_connect_to_emu_without_snr: JLink: OEM: SEGGER-EDU
. . . nRF52_connect_to_emu_without_snr: JLink: Feature(s): FlashBP, GDB
. . . 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: (0024ms, 0041ms total)
. . . nRF52_connect_to_emu_without_snr: JLink: WEBSRV Webserver running on local port 19081
. . . nRF52_connect_to_emu_without_snr: JLink: (0026ms, 0043ms total)
. . . nRF52_connect_to_emu_without_snr: JLink: returns O.K.
. . . nRF52_connect_to_emu_without_snr: JLink: (0029ms, 0046ms total)
. . . 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, 0047ms 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: JLINK_ExecCommand("Device = NRF52832_xxAA", ...).
. . . nRF52_connect_to_emu_without_snr: JLink: XML file found at: C:\Program Files (x86)\SEGGER\JLink_V634f\JLinkDevices.xml
. . . nRF52_connect_to_emu_without_snr: JLink: (0003ms, 0052ms total)
. . . nRF52_connect_to_emu_without_snr: JLink: C:\Program Files (x86)\SEGGER\JLink_V634f\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: (0093ms, 0142ms total)
. . . 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, 0143ms total)
. . . 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: (0001ms, 0145ms total)
. . . 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, 0146ms total)
. . . 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, 0147ms total)
. . . 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: (0002ms, 0150ms total)
. . . nRF52_connect_to_emu_without_snr: JLink: JLINK_SetSpeed(2000)
. . . nRF52_connect_to_emu_without_snr: JLink: (0001ms, 0152ms total)
nRF_recover
. nRF52_recover
. . nRF52_is_connected_to_emu
. . nRF52_is_connected_to_emu: JLink: JLINK_IsOpen()
. . nRF52_is_connected_to_emu: JLink: returns 0x01
. . nRF52_is_connected_to_emu: JLink: (0001ms, 0153ms total)
. . nRF52_is_connected_to_device
. . nRF52_is_connected_to_device: JLink: JLINK_IsConnected()
. . nRF52_is_connected_to_device: JLink: returns FALSE
. . nRF52_is_connected_to_device: JLink: (0001ms, 0155ms total)
. . nRF52_readback_status
. . . nRF52_is_ctrl_ap_available
. . . . nRF52_read_access_port_register
. . . . . nRF52_coresight_configure
. . . . . nRF52_coresight_configure: JLink: JLINK_CORESIGHT_Configure()
. . . . . nRF52_coresight_configure: JLink: returns 0
. . . . . nRF52_coresight_configure: JLink: (0102ms, 0257ms total)
. . . . . nRF52_power_debug_and_system_regions
. . . . . . nRF52_write_debug_port_register
. . . . . . 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: (0001ms, 0258ms 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: JLINK_IsOpen()
. . nRF52_is_connected_to_emu: JLink: returns 0x01
. . nRF52_is_connected_to_emu: JLink: (0001ms, 0260ms total)
. . nRF52_disconnect_from_emu
. . . nRF52_is_connected_to_device
. . . nRF52_is_connected_to_device: JLink: JLINK_IsConnected()
. . . nRF52_is_connected_to_device: JLink: returns FALSE
. . . nRF52_is_connected_to_device: JLink: (0001ms, 0261ms total)
. . . nRF52_unpower_debug_and_system_regions
. . nRF52_disconnect_from_emu: JLink: JLINK_Close()
And when I try to connect directly through JLink :
C:\Program Files (x86)\SEGGER\JLink_V634f>JLink -if swd -device nrf52
SEGGER J-Link Commander V6.34f (Compiled Sep 5 2018 13:25:56)
DLL version V6.34f, compiled Sep 5 2018 13:25:28
Connecting to J-Link via USB...O.K.
Firmware: J-Link V10 compiled Sep 4 2018 11:24:21
Hardware version: V10.10
S/N: 260100542
License(s): FlashBP, GDB
OEM: SEGGER-EDU
VTref=3.638V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "NRF52" selected.
Connecting to target via SWD
Cannot connect to target.
My pin P0.21(Reset) is high.
I went through your forum looking for a solution but despite all that could be found it gave no result.
Can anyone help? Thanks a lot